From 3aec2e1a7206909ebd0114927a9c41045b0c5fbd Mon Sep 17 00:00:00 2001 From: Marshall Greenblatt Date: Mon, 15 Dec 2014 12:31:22 +0000 Subject: [PATCH] Windows: Ignore C4702 unreachable code warning for binary distribution build (issue #1472). git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1958 5089003a-bbd8-11dd-ad1f-f1f9622dbc98 --- CMakeLists.txt.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt.in b/CMakeLists.txt.in index 6b9396029..f16dff0ab 100644 --- a/CMakeLists.txt.in +++ b/CMakeLists.txt.in @@ -393,8 +393,9 @@ if(OS_WINDOWS) # /wd"4244" = Ignore "conversion possible loss of data" warning # /wd"4512" = Ignore "assignment operator could not be generated" warning # /wd"4701" = Ignore "potentially uninitialized local variable" warning + # /wd"4702" = Ignore "unreachable code" warning # /wd"4996" = Ignore "function or variable may be unsafe" warning - set(CEF_COMPILER_FLAGS "/MP /Gy /GR- /Zi /W4 /WX /wd\"4100\" /wd\"4127\" /wd\"4244\" /wd\"4512\" /wd\"4701\" /wd\"4996\"") + set(CEF_COMPILER_FLAGS "/MP /Gy /GR- /Zi /W4 /WX /wd\"4100\" /wd\"4127\" /wd\"4244\" /wd\"4512\" /wd\"4701\" /wd\"4702\" /wd\"4996\"") # /MTd = Multithreaded debug runtime # /Od = Disable optimizations # /RTC1 = Enable basic run-time checks