Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
blender
monado
Commits
663f5467
Commit
663f5467
authored
Jul 20, 2020
by
Ryan Pavlik
Committed by
Jakob Bornecrantz
Aug 05, 2020
Browse files
build: More strict build flags
parent
d8ad620b
Changes
1
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
663f5467
...
...
@@ -170,6 +170,7 @@ endif()
if
(
NOT MSVC
)
set
(
CMAKE_C_FLAGS
"
${
CMAKE_C_FLAGS
}
-pedantic -Wall -Wextra -Wno-unused-parameter"
)
set
(
CMAKE_C_FLAGS
"
${
CMAKE_C_FLAGS
}
-Werror-implicit-function-declaration -Werror=incompatible-pointer-types"
)
set
(
CMAKE_C_FLAGS
"
${
CMAKE_C_FLAGS
}
-Werror=int-conversion"
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-pedantic -Wall -Wextra -Wno-unused-parameter"
)
set
(
CMAKE_SHARED_LINKER_FLAGS
"
${
CMAKE_SHARED_LINKER_FLAGS
}
-Wl,--no-undefined"
)
...
...
Write
Preview
Supports
Markdown
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