Skip to content

Commit 3948b5d

Browse files
author
Jan Ole Vollmer
committed
Disable -Wreturn-stack-address for Clang
1 parent 4545539 commit 3948b5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/CompileOptions.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ if ("${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU" OR "${CMAKE_CXX_COMPILER_ID}" MATCH
119119
$<$<CXX_COMPILER_ID:Clang>:
120120
-Wpedantic
121121

122-
-Wreturn-stack-address
122+
# -Wreturn-stack-address # gives false positives
123123
>
124124

125125
$<$<PLATFORM_ID:Darwin>:

0 commit comments

Comments
 (0)