-
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
*: Add a bunch of warnings to our build system #17954
base: master
Are you sure you want to change the base?
Conversation
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.
Looks good
Should this go in during the freeze? |
no |
This is more like to see what should we FIX? |
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.
Needs polish
configure.ac
Outdated
AC_C_FLAG([-Wformat-security]) | ||
AC_C_FLAG([-Wformat=2]) | ||
AC_C_FLAG([-Wtrampolines]) | ||
AC_C_FLAG([-Wbdi-chars=any]) |
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.
typo, no such warning exists
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.
(there's an i
missing in -Wbidi-chars
)
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.
I'm removing these for the moment and will add a new PR as that these rae just causing problems
configure.ac
Outdated
@@ -457,7 +457,9 @@ AC_C_FLAG([-funwind-tables]) | |||
AC_C_FLAG([-Wall]) | |||
AC_C_FLAG([-Wextra]) | |||
AC_C_FLAG([-Wformat-nonliteral]) | |||
AC_C_FLAG([-Wformat-security]) |
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.
didn't the doc say something about clang still needing -Wformat-security
with -Wformat=2
or so?
@@ -467,6 +469,11 @@ AC_C_FLAG([-Wbad-function-cast]) | |||
AC_C_FLAG([-Wwrite-strings]) | |||
AC_C_FLAG([-Wundef]) | |||
AC_C_FLAG([-Wimplicit-fallthrough]) | |||
AC_C_FLAG([-Werror=implicit]) | |||
AC_C_FLAG([-Werror=int-conversion]) | |||
AC_C_FLAG([-Werror=incompatible-pointer-types]) |
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.
not sure we should be putting any -Werror
here considering we have the global -Werror
switch
Signed-off-by: Donald Sharp <[email protected]>
Signed-off-by: Donald Sharp <[email protected]>
Compiler warning changes now complain that the variable is never used. Signed-off-by: Donald Sharp <[email protected]>
The compiler was complaining that zlog_fini() was not being called. Let the compiler know that this is on purpose, as suggested by the compiler itself. Signed-off-by: Donald Sharp <[email protected]>
Signed-off-by: Donald Sharp <[email protected]>
Compiler is complaining about where the variables are declared. Signed-off-by: Donald Sharp <[email protected]>
Code should compile cleanly with these new additional compiler warnings added. This is as per suggestion. Signed-off-by: Donald Sharp <[email protected]>
371e7fb
to
cf2e7ae
Compare
Code should compile cleanly with these new additional compiler warnings added. This is as per suggestion.