aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2017-03-31 14:24:27 +0000
committerDavid Malcolm <dmalcolm@gcc.gnu.org>2017-03-31 14:24:27 +0000
commitf6a7a9d51c41b7795604edf48865f941c7db7cc8 (patch)
tree3b2aa69e200d6ac1e8b8868910929e7b0b2c5671
parentc330f78894eea4231e7c09877cd0df4c3b1dc590 (diff)
downloadgcc-f6a7a9d51c41b7795604edf48865f941c7db7cc8.zip
gcc-f6a7a9d51c41b7795604edf48865f941c7db7cc8.tar.gz
gcc-f6a7a9d51c41b7795604edf48865f941c7db7cc8.tar.bz2
Fix description of Wendif-labels (PR documentation/78732)
gcc/c-family/ChangeLog: PR documentation/78732 * c.opt (Wendif-labels): Fix description to refer to #else rather than #elif. From-SVN: r246616
-rw-r--r--gcc/c-family/ChangeLog6
-rw-r--r--gcc/c-family/c.opt2
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog
index a129f5d..0f0bd49 100644
--- a/gcc/c-family/ChangeLog
+++ b/gcc/c-family/ChangeLog
@@ -1,3 +1,9 @@
+2017-03-31 David Malcolm <dmalcolm@redhat.com>
+
+ PR documentation/78732
+ * c.opt (Wendif-labels): Fix description to refer to
+ #else rather than #elif.
+
2017-03-31 Jakub Jelinek <jakub@redhat.com>
PR libstdc++/80251
diff --git a/gcc/c-family/c.opt b/gcc/c-family/c.opt
index 78fea61..13b930d 100644
--- a/gcc/c-family/c.opt
+++ b/gcc/c-family/c.opt
@@ -486,7 +486,7 @@ Warn about an empty body in an if or else statement.
Wendif-labels
C ObjC C++ ObjC++ CPP(warn_endif_labels) CppReason(CPP_W_ENDIF_LABELS) Var(cpp_warn_endif_labels) Init(1) Warning LangEnabledBy(C ObjC C++ ObjC++,Wpedantic)
-Warn about stray tokens after #elif and #endif.
+Warn about stray tokens after #else and #endif.
Wenum-compare
C ObjC C++ ObjC++ Var(warn_enum_compare) Init(-1) Warning LangEnabledBy(C ObjC,Wall || Wc++-compat)