summaryrefslogtreecommitdiff
path: root/gcc/c-family/c-indentation.c
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2017-01-17 16:33:44 +0000
committerDavid Malcolm <dmalcolm@gcc.gnu.org>2017-01-17 16:33:44 +0000
commit0d80ab91d0130a23d65133938959eb54f5f9aab7 (patch)
tree5e254d4a2eaa144056a375f52351db61a9ba681d /gcc/c-family/c-indentation.c
parent31b61548d62e7982630d63c7912db2ed3faf5321 (diff)
downloadgcc-0d80ab91d0130a23d65133938959eb54f5f9aab7.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. From-SVN: r244536
Diffstat (limited to 'gcc/c-family/c-indentation.c')
-rw-r--r--gcc/c-family/c-indentation.c2
1 files changed, 1 insertions, 1 deletions
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));
}
}