!46890 dapater for gcc11,ignore warning Wno-maybe-uninitialized

Merge pull request !46890 from qiuzhongya/gcc11
This commit is contained in:
i-robot 2022-12-20 06:26:00 +00:00 committed by Gitee
commit d2ca4e3b78
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 5 additions and 1 deletions

2
akg

@ -1 +1 @@
Subproject commit a5ba9c3e8d94a34932a05c3e7d805ac83d7bf67e Subproject commit 8b6fbd4b08d0a84538591c7b746186169d2ec4f9

View File

@ -2,6 +2,10 @@ if(CMAKE_SYSTEM_NAME MATCHES "Darwin")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-delete-non-abstract-non-virtual-dtor -Wno-overloaded-virtual") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-delete-non-abstract-non-virtual-dtor -Wno-overloaded-virtual")
endif() endif()
if(${CMAKE_SYSTEM_NAME} MATCHES "Linux" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 11)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-maybe-uninitialized")
endif()
if(ENABLE_CPU) if(ENABLE_CPU)
file(GLOB CPU_SRC_LIST RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} file(GLOB CPU_SRC_LIST RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
"*.cc" "*.cc"