On Sat, 28 Feb 2026 04:07:39 GMT, SendaoYan <[email protected]> wrote:

>> 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 is unrelated to 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:
> 
>   Add a comment to descripte the disable warning

Looks good.

-------------

Marked as reviewed by kbarrett (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/29919#pullrequestreview-3871444771

Reply via email to