Skip to content

Commit

Permalink
bazel: Promote unused result warnings to errors.
Browse files Browse the repository at this point in the history
Signed-off-by: format 2020.01.16 <github.com/ChrisCummins/format>
  • Loading branch information
ChrisCummins committed Mar 18, 2020
1 parent 99c1e71 commit b92b6c7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ test --cxxopt='-std=c++14'
build --cxxopt='-Werror=unused-variable'
test --cxxopt='-Werror=unused-variable'

# Promote unused result warnings to errors.
build --cxxopt='-Werror=unused-result'
test --cxxopt='-Werror=unused-result'

# Promote warnings about missing braces on if/else blocks to errors.
build --cxxopt='-Werror=dangling-else'
test --cxxopt='-Werror=dangling-else'
Expand Down

0 comments on commit b92b6c7

Please sign in to comment.