From b288d08fbb850fa0d5600c7aaf5e9943521cb35f Mon Sep 17 00:00:00 2001 From: Jacques Pienaar Date: Mon, 25 Oct 2021 21:11:50 -0700 Subject: [PATCH] [mlir-c] Avoid compiler warning Setting visibility & static leads to warning about attribute being ignored. Differential Revision: https://reviews.llvm.org/D112507 --- mlir/include/mlir-c/IR.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mlir/include/mlir-c/IR.h b/mlir/include/mlir-c/IR.h index 2fec0be..456aa93 100644 --- a/mlir/include/mlir-c/IR.h +++ b/mlir/include/mlir-c/IR.h @@ -713,9 +713,7 @@ MLIR_CAPI_EXPORTED MlirStringRef mlirIdentifierStr(MlirIdentifier ident); //===----------------------------------------------------------------------===// /// Checks whether a type id is null. -MLIR_CAPI_EXPORTED static inline bool mlirTypeIDIsNull(MlirTypeID typeID) { - return !typeID.ptr; -} +static inline bool mlirTypeIDIsNull(MlirTypeID typeID) { return !typeID.ptr; } /// Checks if two type ids are equal. MLIR_CAPI_EXPORTED bool mlirTypeIDEqual(MlirTypeID typeID1, MlirTypeID typeID2); -- 2.7.4