From e0542bcdbc74141ad88b4c3d9f2202a650e5d6e1 Mon Sep 17 00:00:00 2001 From: Loo Rong Jie Date: Fri, 3 Aug 2018 01:49:37 -0700 Subject: Disable the correct warning I realized that I wrote the wrong warning code when I use Bazel from master branch and build something with MSVC. For the curious: - C4117: https://msdn.microsoft.com/en-us/library/9d2szxf8.aspx - C4177: https://msdn.microsoft.com/en-us/library/s4becxs9.aspx /cc @meteorcloudy Closes #5631. PiperOrigin-RevId: 207235606 --- tools/cpp/CROSSTOOL.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/cpp/CROSSTOOL.tpl b/tools/cpp/CROSSTOOL.tpl index abeb2a2c44..20042820e5 100644 --- a/tools/cpp/CROSSTOOL.tpl +++ b/tools/cpp/CROSSTOOL.tpl @@ -962,7 +962,7 @@ toolchain { # Make C++ compilation deterministic. Use linkstamping instead of these # compiler symbols. # TODO: detect clang on Windows and use "-Wno-builtin-macro-redefined" - flag: "/wd4177" # Trying to define or undefine a predefined macro + flag: "/wd4117" # Trying to define or undefine a predefined macro flag: "-D__DATE__=\"redacted\"" flag: "-D__TIMESTAMP__=\"redacted\"" flag: "-D__TIME__=\"redacted\"" -- cgit v1.2.3