[all-commits] [llvm/llvm-project] 82ae83: [mlir] Silence a few -Wunused-but-set-parameter wa...

rk via All-commits all-commits at lists.llvm.org
Wed Feb 15 08:59:30 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 82ae83a8487df0747195d1abbda11920fda11eb8
      https://github.com/llvm/llvm-project/commit/82ae83a8487df0747195d1abbda11920fda11eb8
  Author: Rahul Kayaith <rkayaith at gmail.com>
  Date:   2023-02-15 (Wed, 15 Feb 2023)

  Changed paths:
    M mlir/include/mlir/IR/Attributes.h
    M mlir/include/mlir/IR/Types.h
    M mlir/include/mlir/IR/Value.h

  Log Message:
  -----------
  [mlir] Silence a few -Wunused-but-set-parameter warnings

Some older versions of gcc hit false positives here:

/workdir/llvm-project/mlir/include/mlir/IR/Attributes.h:391:49: warning: parameter 'ty' set but not used [-Wunused-but-set-parameter]
  391 |   static inline bool isPossible(mlir::Attribute ty) {

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81676




More information about the All-commits mailing list