BIND 10 trac1954, updated. d81f573764fe2df0006527145e439893872e6c69 [1954] Back to suppress errors for clang as some clang versions do not support or -W options.

BIND 10 source code commits bind10-changes at lists.isc.org
Tue May 22 11:08:41 UTC 2012


The branch, trac1954 has been updated
       via  d81f573764fe2df0006527145e439893872e6c69 (commit)
      from  190b91b0701773f162424423789ee1d12fbc3260 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit d81f573764fe2df0006527145e439893872e6c69
Author: Marcin Siodelski <marcin at isc.org>
Date:   Tue May 22 12:14:23 2012 +0200

    [1954] Back to suppress errors for clang as some clang versions do not support or -W options.

-----------------------------------------------------------------------

Summary of changes:
 tests/tools/perfdhcp/Makefile.am |    2 +-
 tests/tools/perfdhcp/perfdhcp.cc |    5 +++--
 2 files changed, 4 insertions(+), 3 deletions(-)

-----------------------------------------------------------------------
diff --git a/tests/tools/perfdhcp/Makefile.am b/tests/tools/perfdhcp/Makefile.am
index d9ebb97..685ff1b 100644
--- a/tests/tools/perfdhcp/Makefile.am
+++ b/tests/tools/perfdhcp/Makefile.am
@@ -16,7 +16,7 @@ endif
 # We have to do this to link with new C++ pieces of code
 perfdhcp_CXXFLAGS = $(AM_CXXFLAGS)
 if USE_CLANGPP
-perfdhcp_CXXFLAGS += -Wno-deprecated-writable-strings
+perfdhcp_CXXFLAGS += -Wno-error
 else
 if USE_GXX
 perfdhcp_CXXFLAGS += -Wno-write-strings
diff --git a/tests/tools/perfdhcp/perfdhcp.cc b/tests/tools/perfdhcp/perfdhcp.cc
index 05b8015..414db24 100644
--- a/tests/tools/perfdhcp/perfdhcp.cc
+++ b/tests/tools/perfdhcp/perfdhcp.cc
@@ -2220,9 +2220,10 @@ reporting(void)
 void
 reapchild(int sig)
 {
+    // Do something with variables to avoid unused-variable warning
 	int status;
-	int s = sig;
-    s = 1;
+	status = sig;
+    status = 0;
 	while (wait3(&status, WNOHANG, NULL) > 0)
 		/* continue */;
 }



More information about the bind10-changes mailing list