mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-01-24 07:32:53 -05:00
Remove unused diagnostic pragmas that themselves generate warnings
git-svn-id: file:///svn/unbound/trunk@4927 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
2598f9bb18
commit
83a186f6cc
1 changed files with 1 additions and 4 deletions
|
|
@ -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. */
|
||||
|
|
|
|||
Loading…
Reference in a new issue