[all-commits] [llvm/llvm-project] c3fe8d: Allow -Wno-gnu to silence GNU extensions related t...

Aaron Ballman via All-commits all-commits at lists.llvm.org
Tue Mar 22 10:15:37 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c3fe8ddd8385832fde9f16a261908afbaf9878a4
      https://github.com/llvm/llvm-project/commit/c3fe8ddd8385832fde9f16a261908afbaf9878a4
  Author: Aaron Ballman <aaron at aaronballman.com>
  Date:   2022-03-22 (Tue, 22 Mar 2022)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/Basic/DiagnosticGroups.td
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/test/Sema/pointer-addition.c

  Log Message:
  -----------
  Allow -Wno-gnu to silence GNU extensions related to pointer arithmetic

These diagnostics were added to a diagnostic group, but that diagnostic
group was not under -Wgnu. I've now split them into their own
diagnostic group that is added both to the original group (so user's
currently opting in or out of these should not see a change) and under
the -Wgnu group so that -Wno-gnu can be used to disable all GNU
extension diagnostics. This fixes Issue 54444.




More information about the All-commits mailing list