aboutsummaryrefslogtreecommitdiff
path: root/libcxx/src/algorithm.cpp
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2023-08-10 07:22:45 -0400
committerAaron Ballman <aaron@aaronballman.com>2023-08-10 07:24:05 -0400
commit151214b40d869455666ca76548a9e3ad639f79de (patch)
treeb3151c3aee54208a585deb2cfd34354fa658fe10 /libcxx/src/algorithm.cpp
parentaa603c41caab63e246f4a4258c8b96e6ea06fdc9 (diff)
downloadllvm-151214b40d869455666ca76548a9e3ad639f79de.zip
llvm-151214b40d869455666ca76548a9e3ad639f79de.tar.gz
llvm-151214b40d869455666ca76548a9e3ad639f79de.tar.bz2
Silently accept -Wgnu-empty-initializer
https://github.com/llvm/llvm-project/commit/5d8aaad4452f60ba8902e921d9bed606713a8f26 removed the warning group as the functionality is no longer a GNU extension. However, users have asked for the warning group to be supported so that code transitioning from Clang 16 to Clang 17 has an easier migration path when compiling with -Werror. This patch restores the warning group, but as an ignored warning group because the functionality is now always considered to be a C extension rather than a GNU extension. This allows users to do: -Werror -pedantic -Wno-gnu-empty-intializer -Wno-c2x-extensions to silence the diagnostics in both Clang 16 and Clang 17. Fixes https://github.com/llvm/llvm-project/issues/64357 Differential Revision: https://reviews.llvm.org/D157503
Diffstat (limited to 'libcxx/src/algorithm.cpp')
0 files changed, 0 insertions, 0 deletions