Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
FORMUS3IC_LAS3
/
embb
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
0934d4e6
authored
Feb 10, 2016
by
Marcus Winter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmake: disabled warnings 5026 and 5027 for MSVC
parent
2f7e8112
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
CMakeCommon/SetCompilerFlags.cmake
+7
-2
No files found.
CMakeCommon/SetCompilerFlags.cmake
View file @
0934d4e6
...
@@ -86,11 +86,16 @@ function(SetVisualStudioCompilerFlags)
...
@@ -86,11 +86,16 @@ function(SetVisualStudioCompilerFlags)
# This is only an informational warning about which functions
# This is only an informational warning about which functions
# have been inlined by the compiler.
# have been inlined by the compiler.
# 4255 -> Deactivates warning "no function prototype given converting () to (void)"
# 4255 -> Deactivates warning "no function prototype given converting () to (void)"
#
#
# Locally suppressed warnings (should not be globally suppressed):
# Locally suppressed warnings (should not be globally suppressed):
# 4640 -> Information that local static variable initialization is not
# 4640 -> Information that local static variable initialization is not
# thread-safe.
# thread-safe.
set
(
warning_flags
"/Wall /wd4820 /wd4514 /wd4668 /wd4710 /wd4350 /wd4571 /wd4625 /wd4626 /wd4711 /wd4255"
)
#
# VS 2015 specific warnings:
# 5026 -> Move constructor was implicitly defined as deleted
# 5027 -> Move assignment operator was implicitly defined as deleted
#
set
(
warning_flags
"/Wall /wd4820 /wd4514 /wd4668 /wd4710 /wd4350 /wd4571 /wd4625 /wd4626 /wd4711 /wd4255 /wd5026 /wd5027"
)
if
(
WARNINGS_ARE_ERRORS STREQUAL ON
)
if
(
WARNINGS_ARE_ERRORS STREQUAL ON
)
set
(
warning_flags
"
${
warning_flags
}
/WX"
)
set
(
warning_flags
"
${
warning_flags
}
/WX"
)
endif
()
endif
()
...
...
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