diff options
author | Sebastian Pipping <sebastian@pipping.org> | 2021-12-26 19:43:49 +0100 |
---|---|---|
committer | Sebastian Pipping <sebastian@pipping.org> | 2021-12-26 19:51:44 +0100 |
commit | c2b5d5240465159c380b9d9b66228b39585c5520 (patch) | |
tree | 649d822974a969e3bd09a56944fe7fb4abfa0af5 | |
parent | 9542ad247130801eb226225299d01a17c0582f08 (diff) | |
download | libexpat-git-c2b5d5240465159c380b9d9b66228b39585c5520.tar.gz |
xmlwf: Address Clang 13 warning -Wunused-but-set-variable
-rw-r--r-- | expat/Changes | 2 | ||||
-rw-r--r-- | expat/xmlwf/xmlwf.c | 2 |
2 files changed, 3 insertions, 1 deletions
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 } |