From: Alexander Couzens Date: Tue, 17 Oct 2023 11:05:39 +0000 (+0300) Subject: CMakeLists: set no-dangling-pointer X-Git-Url: http://git.openwrt.org/openwrt/feeds.git?p=project%2Fuqmi.git;a=commitdiff_plain;h=ebfe8b47b366092457df7a7f631c8f746e8455fd 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 --- 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 "")