[all-commits] [llvm/llvm-project] 151214: Silently accept -Wgnu-empty-initializer
Aaron Ballman via All-commits
all-commits at lists.llvm.org
Thu Aug 10 04:24:48 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 151214b40d869455666ca76548a9e3ad639f79de
https://github.com/llvm/llvm-project/commit/151214b40d869455666ca76548a9e3ad639f79de
Author: Aaron Ballman <aaron at aaronballman.com>
Date: 2023-08-10 (Thu, 10 Aug 2023)
Changed paths:
M clang/include/clang/Basic/DiagnosticGroups.td
A clang/test/Sema/empty-init.c
Log Message:
-----------
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
More information about the All-commits
mailing list