CMakeLists: set no-dangling-pointer
authorAlexander Couzens <lynxis@fe80.eu>
Tue, 17 Oct 2023 11:05:39 +0000 (14:05 +0300)
committerAlexander Couzens <lynxis@fe80.eu>
Sat, 9 Mar 2024 20:15:21 +0000 (21:15 +0100)
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>
CMakeLists.txt

index 7af35d78becc78dde8a59414e601e52e504df74e..377a3d4c6c746b7ceb32cb46e30f3c7e83a48675 100644 (file)
@@ -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 "")