Skip to content

Commit 6b9bd76

Browse files
committed
[MLIR][Python] use NB_SUPPRESS_WARNINGS
1 parent c16d252 commit 6b9bd76

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

mlir/cmake/modules/AddMLIRPython.cmake

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -780,6 +780,7 @@ function(add_mlir_python_extension libname extname)
780780
nanobind_add_module(${libname}
781781
NB_DOMAIN ${MLIR_BINDINGS_PYTHON_NB_DOMAIN}
782782
FREE_THREADED
783+
NB_SUPPRESS_WARNINGS
783784
${ARG_SOURCES}
784785
)
785786

@@ -792,25 +793,12 @@ function(add_mlir_python_extension libname extname)
792793
target_compile_options(${NB_LIBRARY_TARGET_NAME}
793794
PRIVATE
794795
-Wall -Wextra -Wpedantic
795-
-Wno-c++98-compat-extra-semi
796796
-Wno-cast-qual
797-
-Wno-covered-switch-default
798-
-Wno-deprecated-literal-operator
799-
-Wno-nested-anon-types
800-
-Wno-unused-parameter
801-
-Wno-zero-length-array
802797
${eh_rtti_enable})
803798

804799
target_compile_options(${libname}
805800
PRIVATE
806801
-Wall -Wextra -Wpedantic
807-
-Wno-c++98-compat-extra-semi
808-
-Wno-cast-qual
809-
-Wno-covered-switch-default
810-
-Wno-deprecated-literal-operator
811-
-Wno-nested-anon-types
812-
-Wno-unused-parameter
813-
-Wno-zero-length-array
814802
${eh_rtti_enable})
815803
endif()
816804

0 commit comments

Comments
 (0)