Skip to content

Fix -Wdeprecated-declarations warning from clang#4936

Open
sendaoYan wants to merge 1 commit into
google:mainfrom
sendaoYan:issue4935
Open

Fix -Wdeprecated-declarations warning from clang#4936
sendaoYan wants to merge 1 commit into
google:mainfrom
sendaoYan:issue4935

Conversation

@sendaoYan
Copy link
Copy Markdown

@sendaoYan sendaoYan commented Feb 28, 2026

Hi all,

This PR disable the -Wdeprecated-declarations compiler warning for clang explicitly. The issue detail shows in #4935

Why not add "-Wno-deprecated-declarations" to makefile to disable the compiler waning? Because OpenJDK will include the whole gtest source and build the gtest with their makefile, disable the compiler warning in source will avoid these project do this disable work again.

@google-cla
Copy link
Copy Markdown

google-cla Bot commented Feb 28, 2026

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@sendaoYan
Copy link
Copy Markdown
Author

sendaoYan commented Feb 28, 2026

Sorry I used the wrong email address, and cause the cla check report fails. So I edit the email address in the commit log and had to push forced.

@sendaoYan sendaoYan changed the title Fix -Wdeprecated-declarations warning from clang Fix -Wdeprecated-declarations warning from clang #4935 Feb 28, 2026
@sendaoYan sendaoYan changed the title Fix -Wdeprecated-declarations warning from clang #4935 Fix -Wdeprecated-declarations warning from clang Feb 28, 2026
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