[cfe-commits] r69239 - /cfe/trunk/tools/clang-cc/Warnings.cpp
Chris Lattner
sabre at nondot.org
Wed Apr 15 15:48:59 PDT 2009
Author: lattner
Date: Wed Apr 15 17:48:58 2009
New Revision: 69239
URL: http://llvm.org/viewvc/llvm-project?rev=69239&view=rev
Log:
make unknown warnings a warning, not an error.
Modified:
cfe/trunk/tools/clang-cc/Warnings.cpp
Modified: cfe/trunk/tools/clang-cc/Warnings.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/clang-cc/Warnings.cpp?rev=69239&r1=69238&r2=69239&view=diff
==============================================================================
--- cfe/trunk/tools/clang-cc/Warnings.cpp (original)
+++ cfe/trunk/tools/clang-cc/Warnings.cpp Wed Apr 15 17:48:58 2009
@@ -108,8 +108,9 @@
const char *Specifier = 0;
if (OptEnd-OptStart != 5) { // Specifier must be present.
if (OptStart[5] != '=' || OptEnd-OptStart == 6) {
- fprintf(stderr, "error: unknown warning option: -W%s\n", Opt.c_str());
- return true;
+ fprintf(stderr, "warning: unknown -Werror warning specifier: -W%s\n",
+ Opt.c_str());
+ continue;
}
Specifier = OptStart+6;
}
@@ -130,8 +131,8 @@
WarningOptionCompare);
if (Found == OptionTable + OptionTableSize ||
strcmp(Found->Name, OptStart) != 0) {
- fprintf(stderr, "error: unknown warning option: -W%s\n", Opt.c_str());
- return true;
+ fprintf(stderr, "warning: unknown warning option: -W%s\n", Opt.c_str());
+ continue;
}
// Option exists, poke all the members of its diagnostic set.
More information about the cfe-commits
mailing list