Skip to content

Silence warnings about -Wno-deprecated-non-prototype#989

Open
mhucka wants to merge 3 commits intotensorflow:masterfrom
mhucka:cxx-compilation-warnings
Open

Silence warnings about -Wno-deprecated-non-prototype#989
mhucka wants to merge 3 commits intotensorflow:masterfrom
mhucka:cxx-compilation-warnings

Conversation

@mhucka
Copy link
Member

@mhucka mhucka commented Feb 7, 2026

Builds were producing a great number of warnings like this:

cc1plus: warning: command-line option '-Wno-deprecated-non-prototype' is valid for C/ObjC but not for C++

These warnings came from a build option in the .bazelrc file written by configure.sh, specifically the application of -Wno-deprecated-non-prototype to C++ files in external dependencies even though the flag is only valid for C. This PR changes the Bazel build per_file_copt and host_per_file_copt regexes for -Wno-deprecated-non-prototype from external/.* to external/.*[.]c$ to target only C source files.

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.

1 participant