Skip to content

Commit

Permalink
Suppress clang constant-logical-operand warning.
Browse files Browse the repository at this point in the history
This is only triggered on some minilzo.cpp code with a particular
set of detected features. In those cases the code is redundant
and will be optimized away, in other cases it isn't so we don't
want to remove the code.
  • Loading branch information
daniel-kristjansson committed Dec 10, 2012
1 parent ece7fe0 commit 2075540
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mythtv/configure
Expand Up @@ -4750,6 +4750,10 @@ elif enabled clangxx; then
# The self assign warning triggers on headers that use x=x;
# to suppress warnings about unused parameters.
check_cxxflags -Wno-self-assign
# The constant-logical-operand only gives use false positives
# for constant logical operands meant to be optimized away.
check_cxxflags -Wno-constant-logical-operand
# clang complains about every unused -I unless you pass it this.
check_cxxflags -Qunused-arguments
fi

Expand Down

0 comments on commit 2075540

Please sign in to comment.