summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Couzens2023-10-17 11:05:39 +0000
committerAlexander Couzens2024-03-09 20:15:21 +0000
commitebfe8b47b366092457df7a7f631c8f746e8455fd (patch)
tree5a3d794dc9866110b110dd5b2a35d3ec40e45da7
parentc47125dc3e7cc1ba40b7a9ef699af71a659dedd8 (diff)
downloaduqmi-ebfe8b47b366092457df7a7f631c8f746e8455fd.tar.gz
CMakeLists: set no-dangling-pointer
As long complete callback will have a stack allocated pointer, uqmi need to have --Wno-dangling-pointer. Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7af35d7..377a3d4 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -4,7 +4,7 @@ PROJECT(uqmi C)
OPTION(BUILD_STATIC OFF)
-ADD_DEFINITIONS(-Os -ggdb -Wall -Werror --std=gnu99 -Wmissing-declarations -Wno-enum-conversion)
+ADD_DEFINITIONS(-Os -ggdb -Wall -Werror --std=gnu99 -Wmissing-declarations -Wno-enum-conversion -Wno-dangling-pointer)
SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "")