From: Rafael Espindola Date: Wed, 17 Nov 2010 20:37:10 +0000 (+0000) Subject: Don't warn about -w not being used in a link. Necessary to get sane X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7f6458b7e265d1870f3bd5be2b49bc4d368446b3;p=clang Don't warn about -w not being used in a link. Necessary to get sane results in the gdb testsuite. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@119552 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp index ca45468f10..3754d2c4cc 100644 --- a/lib/Driver/Tools.cpp +++ b/lib/Driver/Tools.cpp @@ -3212,6 +3212,9 @@ void linuxtools::Link::ConstructJob(Compilation &C, const JobAction &JA, // Silence warning for "clang -g foo.o -o foo" Args.ClaimAllArgs(options::OPT_g_Group); + // and for "clang -g foo.o -o foo". Other warning options are already + // handled somewhere else. + Args.ClaimAllArgs(options::OPT_w); if (Arg *A = Args.getLastArg(options::OPT__sysroot_EQ)) { CmdArgs.push_back("--sysroot");