Skip to content

Commit 063866c

Browse files
ignore "maybe-uninitialized" and "maybe-uninitialized" for Eigen
1 parent 69f4f87 commit 063866c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

components/pango_python/CMakeLists.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,11 @@ if(BUILD_PANGOLIN_PYTHON AND Python3_FOUND AND pybind11_FOUND)
7272
)
7373

7474
if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID MATCHES "Clang")
75-
# ignore "maybe-uninitialized" for Eigen
76-
target_compile_options(${COMPONENT} PRIVATE "-Wno-uninitialized")
75+
# ignore "maybe-uninitialized" and "maybe-uninitialized" for Eigen
76+
if(CMAKE_COMPILER_IS_GNUCC)
77+
target_compile_options(${COMPONENT} PRIVATE "-Wno-error=maybe-uninitialized")
78+
endif()
79+
target_compile_options(${COMPONENT} PRIVATE "-Wno-error=uninitialized")
7780
endif()
7881

7982
PangolinRegisterFactory( InterpreterInterface PyInterpreter )

0 commit comments

Comments
 (0)