]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
[v9_12_0_patch] unconditionally typedef summarystat_t for coverity
authorEvan Hunt <each@isc.org>
Fri, 5 Jan 2018 01:56:29 +0000 (17:56 -0800)
committerEvan Hunt <each@isc.org>
Fri, 5 Jan 2018 01:56:29 +0000 (17:56 -0800)
(cherry picked from commit a0e66ef6dd8d1cfd4420be0ffd363d7c53dc794b)
(cherry picked from commit b1e6c5d922f3b49342460a1a5a584e558b475c1d)

lib/isc/mem.c

index 54e8814c85cd7a13991187bfbf4ac3adafe2c1b1..e14e4597a1f6c13a0841982a44ce54997054e16b 100644 (file)
@@ -2352,7 +2352,6 @@ isc_mem_references(isc_mem_t *ctx0) {
        return (references);
 }
 
-#if defined(HAVE_LIBXML2) || defined(HAVE_JSON)
 typedef struct summarystat {
        isc_uint64_t    total;
        isc_uint64_t    inuse;
@@ -2360,7 +2359,6 @@ typedef struct summarystat {
        isc_uint64_t    blocksize;
        isc_uint64_t    contextsize;
 } summarystat_t;
-#endif
 
 #ifdef HAVE_LIBXML2
 #define TRY0(a) do { xmlrc = (a); if (xmlrc < 0) goto error; } while(0)