Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F1304
pragma-warning.diff
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
aurelien
Mar 8 2016, 9:01 AM
2016-03-08 09:01:24 (UTC+1)
Size
1 KB
Referenced Files
None
Subscribers
None
pragma-warning.diff
View Options
index 2010629..8ab93c4 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -754,6 +754,7 @@ if(WIN32)
mitkFunctionCheckCompilerFlags("/wd4231" MITK_CXX_FLAGS) # warning C4231: nonstandard extension used : 'extern' before template explicit instantiation
# the following line should be removed after fixing bug 17637
mitkFunctionCheckCompilerFlags("/wd4316" MITK_CXX_FLAGS) # warning C4316: object alignment on heap
+ mitkFunctionCheckCompilerFlags("/wd4180" MITK_CXX_FLAGS) # warning C4316: pragma
endif()
if(NOT MSVC_VERSION)
diff --git a/Modules/CppMicroServices/CMakeLists.txt b/Modules/CppMicroServices/CMakeLists.txt
index 9427072..2ea4019 100644
--- a/Modules/CppMicroServices/CMakeLists.txt
+++ b/Modules/CppMicroServices/CMakeLists.txt
@@ -227,7 +227,7 @@ if(CMAKE_COMPILER_IS_GNUCXX)
endif()
if(MSVC)
- set(US_CXX_FLAGS "/MP /WX /wd4996 /wd4251 /wd4503 ${US_CXX_FLAGS}")
+ set(US_CXX_FLAGS "/MP /WX /wd4180 /wd4996 /wd4251 /wd4503 ${US_CXX_FLAGS}")
endif()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${US_CXX_FLAGS}")
File Metadata
Details
Attached
Mime Type
text/plain
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1263
Default Alt Text
pragma-warning.diff (1 KB)
Attached To
Mode
No data available.
Event Timeline
aurelien
added a comment.
Mar 8 2016, 9:01 AM
2016-03-08 09:01:24 (UTC+1)
Comment Actions
Patch which add /wd4180 for MSVC build in CppMicroServices
Log In to Comment