Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
external
mbedtls
Commits
1827a6e7
Commit
1827a6e7
authored
Mar 27, 2014
by
Manuel Pégourié-Gonnard
Browse files
Add -O1 to check mode (helps some warnings)
parent
3895f5a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
CMakeLists.txt
CMakeLists.txt
+2
-2
No files found.
CMakeLists.txt
View file @
1827a6e7
...
...
@@ -11,7 +11,7 @@ if(CMAKE_COMPILER_IS_GNUCC)
set
(
CMAKE_C_FLAGS_DEBUG
"-g3 -O0"
)
set
(
CMAKE_C_FLAGS_COVERAGE
"-g3 -O0 --coverage"
)
set
(
CMAKE_C_FLAGS_ASAN
"-fsanitize=address -fno-omit-frame-pointer -g3 -O1"
)
set
(
CMAKE_C_FLAGS_CHECK
"
${
CMAKE_C_FLAGS
}
-Werror -Wlogical-op -Wwrite-strings"
)
set
(
CMAKE_C_FLAGS_CHECK
"
${
CMAKE_C_FLAGS
}
-Werror
-O1
-Wlogical-op -Wwrite-strings"
)
set
(
CMAKE_C_FLAGS_CHECKFULL
"
${
CMAKE_C_FLAGS_CHECK
}
-Wcast-qual"
)
endif
(
CMAKE_COMPILER_IS_GNUCC
)
...
...
@@ -21,7 +21,7 @@ if(CMAKE_COMPILER_IS_CLANG)
set
(
CMAKE_C_FLAGS_DEBUG
"-g3 -O0"
)
set
(
CMAKE_C_FLAGS_COVERAGE
"-g3 -O0 --coverage"
)
set
(
CMAKE_C_FLAGS_ASAN
"-fsanitize=address -fno-omit-frame-pointer -g3 -O1"
)
set
(
CMAKE_C_FLAGS_CHECK
"
${
CMAKE_C_FLAGS
}
-Werror -Wpointer-arith -Wwrite-strings -Wdocumentation -Wunreachable-code"
)
set
(
CMAKE_C_FLAGS_CHECK
"
${
CMAKE_C_FLAGS
}
-Werror
-O1
-Wpointer-arith -Wwrite-strings -Wdocumentation -Wunreachable-code"
)
endif
(
CMAKE_COMPILER_IS_CLANG
)
set
(
CMAKE_BUILD_TYPE
${
CMAKE_BUILD_TYPE
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment