> Hi all, > > clang23+gcc12(ubuntu) generate compiler warning > "get_temporary_buffer<testing::TestInfo *>' is deprecated > [-Werror,-Wdeprecated-declarations]". And this compiler warning from > googletest file googletest/src/gtest.cc, googletest/src/gtest.cc invoke > `std::stable_sort`, and `std::stable_sort` invoke deprecated > `std::get_temporary_buffer`. So this warning unrelated JDK totally. > > This PR disable deprecated-declarations warning when building libgtest. > Change has been verified locally.
SendaoYan has updated the pull request incrementally with one additional commit since the last revision: Disable deprecated-declarations only for gtest-all.cc ------------- Changes: - all: https://git.openjdk.org/jdk/pull/29919/files - new: https://git.openjdk.org/jdk/pull/29919/files/5f36ef02..cafdc96b Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=29919&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=29919&range=00-01 Stats: 2 lines in 1 file changed: 1 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/29919.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/29919/head:pull/29919 PR: https://git.openjdk.org/jdk/pull/29919
