Skip to content

compiler: suppress all warnings in generated code - #13088

Open
JarvisCraft wants to merge 1 commit into
grpc:masterfrom
JarvisCraft:compiler/suppress-javac-warnings
Open

JarvisCraft wants to merge 1 commit into
grpc:masterfrom
JarvisCraft:compiler/suppress-javac-warnings

Conversation

@JarvisCraft

Copy link
Copy Markdown
Contributor

Description

This makes the compiler add:

@java.lang.SuppressWarnings("all")

to the generated files so that javac does not report those for generated files.

This is specifically relevant for deprecation warnings, since @Deprecated is usually generated by protoc itself but it should not be a warning for generated files.

@JarvisCraft
JarvisCraft force-pushed the compiler/suppress-javac-warnings branch from 2381070 to 30c20a1 Compare October 4, 2026 19:09
@JarvisCraft
JarvisCraft marked this pull request as draft October 4, 2026 19:13
@JarvisCraft
JarvisCraft force-pushed the compiler/suppress-javac-warnings branch from 30c20a1 to f1f58c6 Compare October 4, 2026 19:39
@JarvisCraft
JarvisCraft marked this pull request as ready for review October 4, 2026 20:01

This branch has not been deployed

No deployments
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