[all-commits] [llvm/llvm-project] 1e679c: [CMake] Move -Wno-unused-but-set-parameter from ML...

Martin Storsjö via All-commits all-commits at lists.llvm.org
Mon Sep 7 23:35:14 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1e679c028b30b6542c8712ef2023911673e55c7c
      https://github.com/llvm/llvm-project/commit/1e679c028b30b6542c8712ef2023911673e55c7c
  Author: Martin Storsjö <martin at martin.st>
  Date:   2026-09-08 (Tue, 08 Sep 2026)

  Changed paths:
    M llvm/cmake/modules/HandleLLVMOptions.cmake
    M mlir/CMakeLists.txt

  Log Message:
  -----------
  [CMake] Move -Wno-unused-but-set-parameter from MLIR up to LLVM (#221824)

This warning is known to have false positives with GCC versions before
14.

Since 3aec6a40bb4e49f9ea181ac5c949b6c7c20a5465, this warning appears
when building LLVMSupport as well - thus move the disabling of the
warning up from MLIR to all of LLVM.

In HandleLLVMOptions, the common procedure is to not check for whether
the options are supported or not, but to just hardcode the version
ranges where the options are supported, per compiler.

This option (and -Wunused-but-set-parameter) is available in GCC since
long before our minimum required version.



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