]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
Remove unused diagnostic pragmas that themselves generate warnings
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 2 Oct 2018 12:17:11 +0000 (12:17 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 2 Oct 2018 12:17:11 +0000 (12:17 +0000)
git-svn-id: file:///svn/unbound/trunk@4927 be551aaa-1e26-0410-a405-d3ace91eadb9

contrib/fastrpz.patch

index e738f0518984d0536caa100e6c6d4dc023daf499..590f843d9fa567383edfcbb2b3af212dc9ca041d 100644 (file)
@@ -1318,7 +1318,7 @@ Index: unboundfastrpz/fastrpz/rpz.c
 ===================================================================
 --- unboundfastrpz/fastrpz/rpz.c       (nonexistent)
 +++ unboundfastrpz/fastrpz/rpz.c       (working copy)
-@@ -0,0 +1,1355 @@
+@@ -0,0 +1,1352 @@
 +/*
 + * fastrpz/rpz.c - interface to the fastrpz response policy zone library
 + *
@@ -1943,12 +1943,9 @@ Index: unboundfastrpz/fastrpz/rpz.c
 +      case st_ck_ns:
 +              /* An NSDNAME or NSIP check failed for lack of cached data. */
 +              return false;
-+#pragma clang diagnostic push
-+#pragma clang diagnostic ignored "-Wunreachable-code"
 +      default:
 +              fatal_exit("impossible RPZ state %d in rpz_worker_cache()",
 +                         rpz->st);
-+#pragma clang diagnostic pop
 +      }
 +
 +      /* Wait for a trigger. */