diff options
| author | Alexander Couzens | 2023-10-17 11:05:39 +0000 |
|---|---|---|
| committer | Alexander Couzens | 2024-03-09 20:15:21 +0000 |
| commit | ebfe8b47b366092457df7a7f631c8f746e8455fd (patch) | |
| tree | 5a3d794dc9866110b110dd5b2a35d3ec40e45da7 | |
| parent | c47125dc3e7cc1ba40b7a9ef699af71a659dedd8 (diff) | |
| download | uqmi-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.txt | 2 |
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 "") |