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

*: Add a bunch of warnings to our build system #17954

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

donaldsharp
Copy link
Member

Code should compile cleanly with these new additional compiler warnings added. This is as per suggestion.

Code should compile cleanly with these new additional
compiler warnings added.  This is as per suggestion.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Copy link
Contributor

@mjstapp mjstapp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@ton31337
Copy link
Member

Should this go in during the freeze?

@donaldsharp
Copy link
Member Author

no

@ton31337
Copy link
Member

This is more like to see what should we FIX?

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.

Needs polish

AC_C_FLAG([-Wformat-security])
AC_C_FLAG([-Wformat=2])
AC_C_FLAG([-Wtrampolines])
AC_C_FLAG([-Wbdi-chars=any])
Copy link
Contributor

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

Copy link
Contributor

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])
Copy link
Contributor

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])
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants