diff options
author | Kevin May <kevin.may@arm.com> | 2022-10-17 16:08:15 +0100 |
---|---|---|
committer | TeresaARM <teresa.charlinreyes@arm.com> | 2022-10-20 09:00:28 +0000 |
commit | 41e45ffc7047d5c83eb5a81edae215580cf4530b (patch) | |
tree | dc3f08f5782e6134860938e9e171ef00097e1bb8 | |
parent | f63b457c48fa2aeb01d8cff52475d23e5644f8f4 (diff) | |
download | armnn-41e45ffc7047d5c83eb5a81edae215580cf4530b.tar.gz |
Fix Building Support Library with NDK r25
* Add flags -Wno-c99-designator and -Wno-unused-but-set-variable
Signed-off-by: Kevin May <kevin.may@arm.com>
Change-Id: I7b1a1a353a0474d7ef967f6f3c8d13c36fa31844
-rw-r--r-- | shim/sl/CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/shim/sl/CMakeLists.txt b/shim/sl/CMakeLists.txt index 0ba6390b41..6912640b1c 100644 --- a/shim/sl/CMakeLists.txt +++ b/shim/sl/CMakeLists.txt @@ -57,6 +57,7 @@ list(APPEND base_sources add_library(base STATIC ${base_sources}) target_include_directories (base PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}) target_include_directories (base PUBLIC ${libnnapi_support_include_directories}) +target_compile_options(base PUBLIC -Wno-c99-designator) file(GLOB TYPES_CL_SOURCE_FILES ${AOSP_MODULES_ROOT}/packages/modules/NeuralNetworks/common/operations/*Validation.cpp @@ -141,6 +142,7 @@ list(APPEND neuralnetworks_common_cl_sources add_library(neuralnetworks_common_cl STATIC ${neuralnetworks_common_cl_sources}) target_include_directories (neuralnetworks_common_cl PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}) target_include_directories (neuralnetworks_common_cl PUBLIC ${libnnapi_support_include_directories}) +target_compile_options(neuralnetworks_common_cl PUBLIC -Wno-unused-but-set-variable) set(neuralnetworks_cl_sources) list(APPEND neuralnetworks_cl_sources |