[all-commits] [llvm/llvm-project] 41c650: [clang] Don't use -Wno-nested-anon-types on GCC (#...

Martin Storsjö via All-commits all-commits at lists.llvm.org
Mon Jun 10 23:04:02 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 41c650e8208f7804eb5ecd8749d6b31b6e518bb7
      https://github.com/llvm/llvm-project/commit/41c650e8208f7804eb5ecd8749d6b31b6e518bb7
  Author: Martin Storsjö <martin at martin.st>
  Date:   2024-06-11 (Tue, 11 Jun 2024)

  Changed paths:
    M clang/CMakeLists.txt

  Log Message:
  -----------
  [clang] Don't use -Wno-nested-anon-types on GCC (#95029)

GCC usually doesn't warn about unrecognized -Wno-<foo> options, if no
diagnostics are printed. However if some diagnostics are printed, it
also mentions that there were unrecognized -Wno-<foo> options.

Before 4feae05c6abda364a9295aecfa600d7d4e7dfeb6, we checked for whether
-Wnested-anon-types was supported, and added the -Wno-<foo> form if the
positive form of the option was supported.

As of GCC 14, -Wnested-anon-types isn't supported, thus limit the use of
the option to actual Clang (and still only while using the GCC
compatible driver).

This avoids unnecessary mentions about unrecognized -Wno-<foo> options
when building with GCC.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list