projects
/
project
/
uqmi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c47125d
)
CMakeLists: set no-dangling-pointer
author
Alexander Couzens
<
[email protected]
>
Tue, 17 Oct 2023 11:05:39 +0000
(14:05 +0300)
committer
Alexander Couzens
<
[email protected]
>
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 <
[email protected]
>
CMakeLists.txt
patch
|
blob
|
history
diff --git
a/CMakeLists.txt
b/CMakeLists.txt
index 7af35d78becc78dde8a59414e601e52e504df74e..377a3d4c6c746b7ceb32cb46e30f3c7e83a48675 100644
(file)
--- 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 "")