aboutsummaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2013-10-29 11:27:06 -0700
committerChris Robinson <[email protected]>2013-10-29 11:27:06 -0700
commita507d0aa752921e99ded109e6c6225026d756b51 (patch)
tree479a2c9daddf605c8781a394547f2ef366c2c97a /CMakeLists.txt
parentd4aa4e16a0b6bb53ec9bbe0a8b3f467fb9a243f7 (diff)
Disable MSVC warning 4098
a.k.a. "'void' function returning a value", caused by returning a void in a function that returns void. Such as: void foo() { } void bar() { return foo(); } Which can happen due to some generalized macros that generate wrappers.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d048f11d..468a8be0 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -172,6 +172,7 @@ IF(MSVC)
SET(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -D_DEBUG")
ADD_DEFINITIONS(-D_CRT_SECURE_NO_WARNINGS)
ADD_DEFINITIONS(-D_CRT_NONSTDC_NO_DEPRECATE)
+ ADD_DEFINITIONS("/wd4098")
IF(NOT DXSDK_DIR)
STRING(REGEX REPLACE "\\\\" "/" DXSDK_DIR "$ENV{DXSDK_DIR}")