Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tianlh
LightGBM-DCU
Commits
b40d0dc3
Unverified
Commit
b40d0dc3
authored
May 04, 2019
by
Nikita Titov
Committed by
GitHub
May 04, 2019
Browse files
[ci][SWIG] fixed SWIG -Wstrict-aliasing warnings (#2139)
parent
7156c9b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
CMakeLists.txt
CMakeLists.txt
+3
-0
No files found.
CMakeLists.txt
View file @
b40d0dc3
...
...
@@ -117,6 +117,9 @@ endif(USE_HDFS)
if
(
UNIX OR MINGW OR CYGWIN
)
SET
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-std=c++11 -pthread -O3 -Wextra -Wall -Wno-ignored-attributes -Wno-unknown-pragmas -Wno-return-type"
)
if
(
USE_SWIG
)
SET
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-fno-strict-aliasing"
)
endif
()
endif
()
if
(
WIN32 AND MINGW
)
...
...
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