-
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
Code should compile cleanly with these new additional compiler warnings added. This is as per suggestion. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
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
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
)
@@ -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
Code should compile cleanly with these new additional compiler warnings added. This is as per suggestion.