projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lib: add null checks before "casting" to "base class"
[babeltrace.git]
/
configure.ac
diff --git
a/configure.ac
b/configure.ac
index f9f3fab71632018a2e7138fec64a63283edfe148..5dcb8bfe79888900c336edf55a148ddc43f4e209 100644
(file)
--- a/
configure.ac
+++ b/
configure.ac
@@
-700,6
+700,11
@@
m4_define([WARN_FLAGS_LIST], [ dnl
-Wundef dnl
-Wredundant-decls dnl
-Wshadow 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
+ -Wshadow-field dnl
-Wjump-misses-init dnl
-Wsuggest-attribute=format dnl
-Wtautological-constant-out-of-range-compare dnl
-Wjump-misses-init dnl
-Wsuggest-attribute=format dnl
-Wtautological-constant-out-of-range-compare dnl
@@
-712,6
+717,7
@@
m4_define([WARN_FLAGS_LIST], [ dnl
-Wduplicated-cond dnl
-Wduplicated-branches dnl
-Wlogical-op dnl
-Wduplicated-cond dnl
-Wduplicated-branches dnl
-Wlogical-op dnl
+ -Wsuggest-override dnl
-Wno-unused-parameter dnl
-Wno-sign-compare dnl
dnl
-Wno-unused-parameter dnl
-Wno-sign-compare dnl
dnl
@@
-728,6
+734,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
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
])
# Pass -Werror as an extra flag during the test: this is needed to make the
This page took
0.023102 seconds
and
4
git commands to generate.