diff options
author | dmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4> | 2017-01-17 16:33:44 +0000 |
---|---|---|
committer | dmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4> | 2017-01-17 16:33:44 +0000 |
commit | 32641de76b3287d37c4906f9067f0d092bf55184 (patch) | |
tree | 5e254d4a2eaa144056a375f52351db61a9ba681d /gcc/c-family | |
parent | 476b744d9d90a715ed779a72551361c4b650d351 (diff) | |
download | gcc-32641de76b3287d37c4906f9067f0d092bf55184.tar.gz |
Fix wording of -Wmisleading-indentation (PR c++/71497)
gcc/c-family/ChangeLog:
PR c++/71497
* c-indentation.c (warn_for_misleading_indentation): Use the past
subjunctive in the note.
gcc/testsuite/ChangeLog:
PR c++/71497
* c-c++-common/Wmisleading-indentation-3.c: Update wording of
expected messages.
* c-c++-common/Wmisleading-indentation.c: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@244536 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-family')
-rw-r--r-- | gcc/c-family/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/c-family/c-indentation.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog index 8ea74d70536..778f8b187f2 100644 --- a/gcc/c-family/ChangeLog +++ b/gcc/c-family/ChangeLog @@ -1,3 +1,9 @@ +2017-01-17 David Malcolm <dmalcolm@redhat.com> + + PR c++/71497 + * c-indentation.c (warn_for_misleading_indentation): Use the past + subjunctive in the note. + 2017-01-17 Aldy Hernandez <aldyh@redhat.com> PR c/79116 diff --git a/gcc/c-family/c-indentation.c b/gcc/c-family/c-indentation.c index 78ef16627bb..329f4708345 100644 --- a/gcc/c-family/c-indentation.c +++ b/gcc/c-family/c-indentation.c @@ -608,7 +608,7 @@ warn_for_misleading_indentation (const token_indent_info &guard_tinfo, guard_tinfo_to_string (guard_tinfo))) inform (next_tinfo.location, ("...this statement, but the latter is misleadingly indented" - " as if it is guarded by the %qs"), + " as if it were guarded by the %qs"), guard_tinfo_to_string (guard_tinfo)); } } |