From: Wouter Wijngaards Date: Tue, 2 Oct 2018 12:17:11 +0000 (+0000) Subject: Remove unused diagnostic pragmas that themselves generate warnings X-Git-Tag: release-1.8.2rc1~64 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=83a186f6ccdfd9ed4a0f0910abce94c5b9308110;p=thirdparty%2Funbound.git Remove unused diagnostic pragmas that themselves generate warnings git-svn-id: file:///svn/unbound/trunk@4927 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/contrib/fastrpz.patch b/contrib/fastrpz.patch index e738f0518..590f843d9 100644 --- a/contrib/fastrpz.patch +++ b/contrib/fastrpz.patch @@ -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. */