From 41e45ffc7047d5c83eb5a81edae215580cf4530b Mon Sep 17 00:00:00 2001 From: Kevin May Date: Mon, 17 Oct 2022 16:08:15 +0100 Subject: Fix Building Support Library with NDK r25 * Add flags -Wno-c99-designator and -Wno-unused-but-set-variable Signed-off-by: Kevin May Change-Id: I7b1a1a353a0474d7ef967f6f3c8d13c36fa31844 --- shim/sl/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) 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 -- cgit v1.2.1