Browse Source

[master] need clangpp check in lib/resolve too

Jelte Jansen 14 years ago
parent
commit
ec8977f28f
1 changed files with 10 additions and 0 deletions
  1. 10 0
      src/lib/resolve/Makefile.am

+ 10 - 0
src/lib/resolve/Makefile.am

@@ -17,3 +17,13 @@ libresolve_la_SOURCES += response_classifier.cc response_classifier.h
 libresolve_la_SOURCES += recursive_query.cc recursive_query.h
 libresolve_la_LIBADD = $(top_builddir)/src/lib/dns/libdns++.la
 libresolve_la_LIBADD += $(top_builddir)/src/lib/exceptions/libexceptions.la
+
+# Note: the ordering matters: -Wno-... must follow -Wextra (defined in
+# B10_CXXFLAGS)
+libresolve_la_CXXFLAGS = $(AM_CXXFLAGS)
+if USE_CLANGPP
+# For clang++, we need to turn off -Werror completely.
+libresolve_la_CXXFLAGS += -Wno-error
+endif
+libresolve_la_CPPFLAGS = $(AM_CPPFLAGS)
+