Skip to content

GCC warning -Wunused-but-set-parameter in MLIR (<gcc-10 only) #68409

Description

@lipracer
system:
gcc (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0

summary:

llvm-project/mlir/include/mlir/IR/OperationSupport.h:656:67: warning: parameter ‘rhs’ set but not used [-Wunused-but-set-parameter]
  656 |     bool compareProperties(OpaqueProperties lhs, OpaqueProperties rhs) final {
      |                                                  ~~~~~~~~~~~~~~~~~^~~
llvm-project/mlir/include/mlir/IR/OperationSupport.h: In instantiation of ‘llvm::hash_code mlir::RegisteredOperationName::Model<ConcreteOp>::hashProperties(mlir::OpaqueProperties) [with ConcreteOp = mlir::transform::ApplyExpandOpsPatternsOp]’:
llvm-project/mlir/include/mlir/IR/OperationSupport.h:666:21:   required from here
llvm-project/mlir/include/mlir/IR/OperationSupport.h:666:53: warning: parameter ‘prop’ set but not used [-Wunused-but-set-parameter]
  666 |     llvm::hash_code hashProperties(OpaqueProperties prop) final {

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions