@@ -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
@@ -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 */;
}