Skip to content

Commit 50e46b5

Browse files
committed
Fix MSVC warning C4701 (Potentially unitialized local variable)
- Warnings were being generated by Boost::Wave : include\boost\wave\util\cpp_macromap.hpp(1819) : warning C4701: potentially uninitialized local variable 'is_system' used include\boost\wave\util\cpp_macromap.hpp(1819) : warning C4701: potentially uninitialized local variable 'is_quoted_filename' used include\boost\wave\util\cpp_macromap.hpp(1819) : warning C4701: potentially uninitialized local variable 'is_system' used include\boost\wave\util\cpp_macromap.hpp(1819) : warning C4701: potentially uninitialized local variable 'is_quoted_filename' used
1 parent 8247247 commit 50e46b5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

SConstruct

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2174,6 +2174,7 @@ if env["WITH_GL"] and doConfigure :
21742174
# while still using -Werror.
21752175
"-Wno-format" if env["PLATFORM"] != "win32" else "",
21762176
"-Wno-strict-aliasing" if env["PLATFORM"] != "win32" else "",
2177+
"/wd4701" if env["PLATFORM"] == "win32" else "",
21772178
systemIncludeArgument, "$GLEW_INCLUDE_PATH",
21782179
systemIncludeArgument, "$OIIO_INCLUDE_PATH",
21792180
],

0 commit comments

Comments
 (0)