[cfe-commits] r69564 - /cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td
Eli Friedman
eli.friedman at gmail.com
Sun Apr 19 18:56:55 PDT 2009
Author: efriedma
Date: Sun Apr 19 20:56:54 2009
New Revision: 69564
URL: http://llvm.org/viewvc/llvm-project?rev=69564&view=rev
Log:
Hook up -Wunused-value to the unused expression warning. This is
useful for macro-heavy codebases that tend to trigger this warning a
lot.
Note that a make clean is required to get the option working; the
dependencies for DiagnosticGroups.inc appear to be broken.
Modified:
cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td
Modified: cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td?rev=69564&r1=69563&r2=69564&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td (original)
+++ cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td Sun Apr 19 20:56:54 2009
@@ -1289,7 +1289,8 @@
"'__builtin_choose_expr' requires a constant expression">;
def ext_typecheck_expression_not_constant_but_accepted : Extension<
"expression is not a constant, but is accepted as one by GNU extensions">;
-def warn_unused_expr : Warning<"expression result unused">;
+def warn_unused_expr : Warning<"expression result unused">,
+ InGroup<UnusedValue>;
// inline asm.
def err_asm_wide_character : Error<"wide string is invalid in 'asm'">;
More information about the cfe-commits
mailing list