X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=configure.ac;h=89884d973eb7b7bc85b4a0024bfe6b97a35db7ea;hp=f9f3fab71632018a2e7138fec64a63283edfe148;hb=827e42e017fc5f525aa39a3851bf2e7e50e887aa;hpb=01bf7a3a1fbc42bb8b069793619ca786f52ca6de diff --git a/configure.ac b/configure.ac index f9f3fab7..89884d97 100644 --- a/configure.ac +++ b/configure.ac @@ -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 @@ -712,6 +716,7 @@ m4_define([WARN_FLAGS_LIST], [ dnl -Wduplicated-cond dnl -Wduplicated-branches dnl -Wlogical-op dnl + -Wsuggest-override dnl -Wno-unused-parameter dnl -Wno-sign-compare dnl dnl @@ -728,6 +733,7 @@ m4_define([WARN_FLAGS_LIST], [ dnl dnl Ref: https://github.com/swig/swig/issues/1259 -Wno-cast-function-type dnl -Wno-missing-field-initializers dnl + -Wno-maybe-uninitialized dnl ]) # Pass -Werror as an extra flag during the test: this is needed to make the