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.

llvm-svn: 69564
This commit is contained in:
Eli Friedman 2009-04-20 01:56:54 +00:00
parent 5d5dbb1754
commit 7de03e1950
1 changed files with 2 additions and 1 deletions

View File

@ -1289,7 +1289,8 @@ def err_typecheck_choose_expr_requires_constant : Error<
"'__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'">;