]> granicus.if.org Git - libexpat/commitdiff
xmlparse.c: Address warning about unused functions (#161)
authorSebastian Pipping <sebastian@pipping.org>
Tue, 24 Oct 2017 20:46:30 +0000 (22:46 +0200)
committerSebastian Pipping <sebastian@pipping.org>
Tue, 24 Oct 2017 20:46:30 +0000 (22:46 +0200)
expat/Changes
expat/lib/xmlparse.c

index 132f0744d36180f2f7a9ea99f641551722ea1ada..51780181d489a8c5ac2c6373e28d03b7a86fc6eb 100644 (file)
@@ -30,6 +30,7 @@ Release 2.2.5 ???????????????????
               #6  Resolve superfluous internal malloc/realloc switch
        #153 #155  Improve docbook2x-man detection
             #160  Undefine NDEBUG in the test suite (rather than rejecting it)
+            #161  Address compiler warnings
 
         Special thanks to:
             Benbuck Nason
index 630cf66d15f57e135260181e8865b607857f0fb2..9d81b55d518a888f4b85f62cc97573683567f4b9 100644 (file)
@@ -673,6 +673,9 @@ static const XML_Char implicitContext[] = {
 };
 
 
+/* To avoid warnings about unused functions: */
+#if ! defined(HAVE_ARC4RANDOM_BUF) && ! defined(HAVE_ARC4RANDOM)
+
 #if defined(HAVE_GETRANDOM) || defined(HAVE_SYSCALL_GETRANDOM)
 
 /* Obtain entropy on Linux 3.17+ */
@@ -738,6 +741,8 @@ writeRandomBytes_dev_urandom(void * target, size_t count) {
 
 #endif  /* ! defined(_WIN32) && defined(XML_DEV_URANDOM) */
 
+#endif  /* ! defined(HAVE_ARC4RANDOM_BUF) && ! defined(HAVE_ARC4RANDOM) */
+
 
 #if defined(HAVE_ARC4RANDOM)