diff options
author | reichelt <reichelt@138bc75d-0d04-0410-961f-82ee72b054a4> | 2017-04-20 16:48:44 +0000 |
---|---|---|
committer | reichelt <reichelt@138bc75d-0d04-0410-961f-82ee72b054a4> | 2017-04-20 16:48:44 +0000 |
commit | dc99315092ba9b2c27a3350bec0f09a052a30e1a (patch) | |
tree | 7711463db0d0218b531e3efa05e231b763318b95 /gcc/c-family | |
parent | eb4691e114f0de1a95817bdbd8b91fc611cc9ebd (diff) | |
download | gcc-dc99315092ba9b2c27a3350bec0f09a052a30e1a.tar.gz |
* c.opt (Wextra-semi): New C++ warning flag.
* doc/invoke.texi (-Wextra-semi): Document new warning option.
* parser.c (cp_parser_member_declaration): Add warning with fixit
information for extra semicolon after in-class function definition.
* g++.dg/warn/Wextra-semi.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@247028 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-family')
-rw-r--r-- | gcc/c-family/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/c-family/c.opt | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog index ae987057362..102b08eede8 100644 --- a/gcc/c-family/ChangeLog +++ b/gcc/c-family/ChangeLog @@ -1,3 +1,7 @@ +2017-04-20 Volker Reichelt <v.reichelt@netcologne.de> + + * c.opt (Wextra-semi): New C++ warning flag. + 2017-04-20 Jakub Jelinek <jakub@redhat.com> PR middle-end/80423 diff --git a/gcc/c-family/c.opt b/gcc/c-family/c.opt index 13b930d75d4..6ecbfca4413 100644 --- a/gcc/c-family/c.opt +++ b/gcc/c-family/c.opt @@ -504,6 +504,10 @@ Wextra C ObjC C++ ObjC++ Warning ; in common.opt +Wextra-semi +C++ ObjC++ Var(warn_extra_semi) Warning +Warn about semicolon after in-class function definition. + Wfloat-conversion C ObjC C++ ObjC++ Var(warn_float_conversion) Warning LangEnabledBy(C ObjC C++ ObjC++,Wconversion) Warn for implicit type conversions that cause loss of floating point precision. |