Skip to content
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

Merged
merged 1 commit into from
Sep 18, 2018

Conversation

pacovn
Copy link
Contributor

@pacovn pacovn commented Sep 13, 2018

Summary

Add the '-Wshadow' to the dev build (discussed with @donaldsharp after PR's #3006, #3007, #3009)

Components

build

@LabN-CI
Copy link
Collaborator

LabN-CI commented Sep 13, 2018

💚 Basic BGPD CI results: SUCCESS, 0 tests failed

Results table
_ _
Result SUCCESS git merge/3017 2029a0f
Date 09/13/2018
Start 11:10:11
Finish 11:33:15
Run-Time 23:04
Total 1816
Pass 1816
Fail 0
Valgrind-Errors 0
Valgrind-Loss 0
Details vncregress-2018-09-13-11:10:11.txt
Log autoscript-2018-09-13-11:10:48.log.bz2

For details, please contact louberger

@NetDEF-CI
Copy link
Collaborator

Continuous Integration Result: SUCCESSFUL

Congratulations, 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.
For questions and feedback in regards to this CI system, please feel free to email
Martin Winter - mwinter (at) opensourcerouting.org.


CLANG Static Analyzer Summary

  • Github Pull Request 3017, comparing to Git base SHA 6efca34
  • Base image data for Git 6efca34 does not exist - compare skipped

Copy link
Contributor

@eqvinox eqvinox left a 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])
Copy link
Contributor

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.

Copy link
Contributor Author

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>
@pacovn pacovn force-pushed the devbuild_Wshadow_flag branch from 2029a0f to 2b5773b Compare September 17, 2018 16:37
@NetDEF-CI
Copy link
Collaborator

Continuous Integration Result: SUCCESSFUL

Congratulations, 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.
For questions and feedback in regards to this CI system, please feel free to email
Martin Winter - mwinter (at) opensourcerouting.org.


CLANG Static Analyzer Summary

  • Github Pull Request 3017, comparing to Git base SHA b4657ea

No Changes in Static Analysis warnings compared to base

@LabN-CI
Copy link
Collaborator

LabN-CI commented Sep 17, 2018

💚 Basic BGPD CI results: SUCCESS, 0 tests failed

Results table
_ _
Result SUCCESS git merge/3017 2b5773b
Date 09/17/2018
Start 13:20:11
Finish 13:43:18
Run-Time 23:07
Total 1816
Pass 1816
Fail 0
Valgrind-Errors 0
Valgrind-Loss 0
Details vncregress-2018-09-17-13:20:11.txt
Log autoscript-2018-09-17-13:20:49.log.bz2

For details, please contact louberger

@pacovn
Copy link
Contributor Author

pacovn commented Sep 17, 2018

@eqvinox Hi, I've updated the commit with your request :-)

@eqvinox eqvinox merged commit dc790ba into FRRouting:master Sep 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants