-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build: add -Wshadow to the dev build #3017
Conversation
💚 Basic BGPD CI results: SUCCESS, 0 tests failedResults table
For details, please contact louberger |
Continuous Integration Result: SUCCESSFULCongratulations, this patch passed basic tests Tested-by: NetDEF / OpenSourceRouting.org CI System CI System Testrun URL: https://ci1.netdef.org/browse/FRR-FRRPULLREQ-5295/ This is a comment from an EXPERIMENTAL automated CI system. CLANG Static Analyzer Summary |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wrong place (refer to inline comment)
configure.ac
Outdated
@@ -202,6 +202,7 @@ elif test "x${enable_dev_build}" = "xyes"; then | |||
if test "z$orig_cflags" = "z"; then | |||
AC_C_FLAG([-g3]) | |||
AC_C_FLAG([-O0]) | |||
AC_C_FLAG([-Wshadow]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wrong place to add this; please put it a few lines down, below
dnl always want these CFLAGS
BTW, the difference between
AC_C_FLAG([-Wwrite-strings]) <--- HERE(A)
if test x"${enable_gcc_ultra_verbose}" = x"yes" ; then
AC_C_FLAG([-Wcast-qual]) <--- HERE(B)
is that the warnings in place (A) should always be clean in CI (and CI fails if there is a new warning), while the warnings under (B) are "informative" and we don't want CI to be strict about them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! :-)
Signed-off-by: F. Aragon <paco@voltanet.io>
2029a0f
to
2b5773b
Compare
Continuous Integration Result: SUCCESSFULCongratulations, this patch passed basic tests Tested-by: NetDEF / OpenSourceRouting.org CI System CI System Testrun URL: https://ci1.netdef.org/browse/FRR-FRRPULLREQ-5329/ This is a comment from an EXPERIMENTAL automated CI system. CLANG Static Analyzer Summary
No Changes in Static Analysis warnings compared to base |
💚 Basic BGPD CI results: SUCCESS, 0 tests failedResults table
For details, please contact louberger |
@eqvinox Hi, I've updated the commit with your request :-) |
Summary
Add the '-Wshadow' to the dev build (discussed with @donaldsharp after PR's #3006, #3007, #3009)
Components
build