From c2b5d5240465159c380b9d9b66228b39585c5520 Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Sun, 26 Dec 2021 19:43:49 +0100 Subject: [PATCH] xmlwf: Address Clang 13 warning -Wunused-but-set-variable --- expat/Changes | 2 +- expat/xmlwf/xmlwf.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/expat/Changes b/expat/Changes index af5e3cdb..51cbaa2d 100644 --- a/expat/Changes +++ b/expat/Changes @@ -4,7 +4,7 @@ NOTE: We are looking for help with a few things: Release x.x.x xxx xxxxxxxx xx xxxx Other changes: - #527 Address compiler warnings + #527 #528 Address compiler warnings Release 2.4.2 Sun December 19 2021 Other changes: diff --git a/expat/xmlwf/xmlwf.c b/expat/xmlwf/xmlwf.c index 342d6c59..29118bb6 100644 --- a/expat/xmlwf/xmlwf.c +++ b/expat/xmlwf/xmlwf.c @@ -1128,6 +1128,8 @@ tmain(int argc, XML_Char **argv) { #ifdef XML_DTD XML_SetBillionLaughsAttackProtectionActivationThreshold( parser, attackThresholdBytes); +#else + (void)attackThresholdBytes; // silence -Wunused-but-set-variable #endif }