diff options
author | Marek Polacek <polacek@redhat.com> | 2015-04-30 13:20:03 +0000 |
---|---|---|
committer | Marek Polacek <mpolacek@gcc.gnu.org> | 2015-04-30 13:20:03 +0000 |
commit | 577cd070845fb8facf0a451aafe1e444b9374b08 (patch) | |
tree | 542480c9b7ef2c43959ef8a34b1d4b686702590a /gcc/final.c | |
parent | bb83a43d6b768886ea4733ca6218f30d90ea0e15 (diff) | |
download | gcc-577cd070845fb8facf0a451aafe1e444b9374b08.zip gcc-577cd070845fb8facf0a451aafe1e444b9374b08.tar.gz gcc-577cd070845fb8facf0a451aafe1e444b9374b08.tar.bz2 |
c-common.c (maybe_warn_bool_compare): When comparing with 0/1, require that the non-constant be of a boolean type.
* c-common.c (maybe_warn_bool_compare): When comparing with 0/1,
require that the non-constant be of a boolean type.
* c-c++-common/Wbool-compare-3.c: New test.
From-SVN: r222622
Diffstat (limited to 'gcc/final.c')
0 files changed, 0 insertions, 0 deletions