configure: enable -Wshadow-field-in-constructor
[babeltrace.git] / configure.ac
index f9f3fab71632018a2e7138fec64a63283edfe148..ef7dbc390112a91ee629476f0303e4edd3ebf96b 100644 (file)
@@ -700,6 +700,10 @@ m4_define([WARN_FLAGS_LIST], [ dnl
   -Wundef dnl
   -Wredundant-decls dnl
   -Wshadow dnl
+  dnl GCC's -Wshadow warns about constructor parameters shadowing fields, but
+  dnl Clang's does not.  Enable Clang's `-Wshadow-field-in-constructor`, to make
+  dnl Clang warn about that.
+  -Wshadow-field-in-constructor dnl
   -Wjump-misses-init dnl
   -Wsuggest-attribute=format dnl
   -Wtautological-constant-out-of-range-compare dnl
This page took 0.022792 seconds and 4 git commands to generate.