From f6a7a9d51c41b7795604edf48865f941c7db7cc8 Mon Sep 17 00:00:00 2001 From: David Malcolm Date: Fri, 31 Mar 2017 14:24:27 +0000 Subject: [PATCH] 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 --- gcc/c-family/ChangeLog | 6 ++++++ gcc/c-family/c.opt | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog index a129f5def77..0f0bd49714a 100644 --- a/gcc/c-family/ChangeLog +++ b/gcc/c-family/ChangeLog @@ -1,3 +1,9 @@ +2017-03-31 David Malcolm + + PR documentation/78732 + * c.opt (Wendif-labels): Fix description to refer to + #else rather than #elif. + 2017-03-31 Jakub Jelinek PR libstdc++/80251 diff --git a/gcc/c-family/c.opt b/gcc/c-family/c.opt index 78fea61ef2a..13b930d75d4 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) -- 2.30.2