Browse Source

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

Marcin Siodelski 13 years ago
parent
commit
d81f573764
2 changed files with 4 additions and 3 deletions
  1. 1 1
      tests/tools/perfdhcp/Makefile.am
  2. 3 2
      tests/tools/perfdhcp/perfdhcp.cc

+ 1 - 1
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

+ 3 - 2
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 */;
 }