summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
authorReid Kleckner <reid@kleckner.net>2015-02-17 23:28:19 +0000
committerReid Kleckner <reid@kleckner.net>2015-02-17 23:28:19 +0000
commit469b6bce613cdf2d8b52baa1b11d00c25ad3a3ad (patch)
treed564df3216815d6bba85ba7a198e36c28342997c /clang/test
parent44bf1c9c53d36637c0abca132a08518d3138a78b (diff)
downloadbcm5719-llvm-469b6bce613cdf2d8b52baa1b11d00c25ad3a3ad.tar.gz
bcm5719-llvm-469b6bce613cdf2d8b52baa1b11d00c25ad3a3ad.zip
clang-cl: Map /wd4996 to -Wno-deprecated-declarations
This is typically used to suppress warnings about calling snprintf and other "deprecated" POSIX functions. Accepting this flag helps avoid tons of useless warnings when trying out clang-cl on a new project. Patch by Scott Graham! llvm-svn: 229583
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/Driver/cl-options.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/clang/test/Driver/cl-options.c b/clang/test/Driver/cl-options.c
index ba717f0ff4c..1287017469d 100644
--- a/clang/test/Driver/cl-options.c
+++ b/clang/test/Driver/cl-options.c
@@ -177,9 +177,10 @@
// NOSTRICT: "-relaxed-aliasing"
// For some warning ids, we can map from MSVC warning to Clang warning.
-// RUN: %clang_cl -wd4005 -### -- %s 2>&1 | FileCheck -check-prefix=wd4005 %s
-// wd4005: "-cc1"
-// wd4005: "-Wno-macro-redefined"
+// RUN: %clang_cl -wd4005 -wd4996 -### -- %s 2>&1 | FileCheck -check-prefix=Wno %s
+// Wno: "-cc1"
+// Wno: "-Wno-macro-redefined"
+// Wno: "-Wno-deprecated-declarations"
// Ignored options. Check that we don't get "unused during compilation" errors.
// (/Zs is for syntax-only)
OpenPOWER on IntegriCloud