diff options
author | Ville Voutilainen <ville.voutilainen@gmail.com> | 2015-09-23 21:22:21 +0300 |
---|---|---|
committer | Ville Voutilainen <ville@gcc.gnu.org> | 2015-09-23 21:22:21 +0300 |
commit | 99474f812e6cc226e01b5a2e1f28695983ff477b (patch) | |
tree | 2d2fc8e57eb096ecb42ce6cb6c9d5b3a621e688a | |
parent | 46efdbbc0113427e165b0d3635d5a26fb83d1448 (diff) | |
download | gcc-99474f812e6cc226e01b5a2e1f28695983ff477b.zip gcc-99474f812e6cc226e01b5a2e1f28695983ff477b.tar.gz gcc-99474f812e6cc226e01b5a2e1f28695983ff477b.tar.bz2 |
Fix small typos in the coding rule enforcement warnings.
/cp
2015-09-23 Ville Voutilainen <ville.voutilainen@gmail.com>
Fix small typos in the coding rule enforcement warnings.
* parser.c (cp_parser_namespace_definition): Replace 'namepace'
with 'namespace'.
/testsuite
2015-09-23 Ville Voutilainen <ville.voutilainen@gmail.com>
Fix small typos in the coding rule enforcement warnings.
* g++.dg/diagnostic/disable.C: Replace 'namepace'
with 'namespace'.
From-SVN: r228061
-rw-r--r-- | gcc/cp/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/cp/parser.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/diagnostic/disable.C | 2 |
4 files changed, 14 insertions, 2 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 49f131e..cb3a9b1 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,9 @@ +2015-09-23 Ville Voutilainen <ville.voutilainen@gmail.com> + + Fix small typos in the coding rule enforcement warnings. + * parser.c (cp_parser_namespace_definition): Replace 'namepace' + with 'namespace'. + 2015-09-22 Nathan Sidwell <nathan@codesourcery.com> * decl.c (xref_basetypes): Check virtual and/or multiple diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c index cc920926e..1148156 100644 --- a/gcc/cp/parser.c +++ b/gcc/cp/parser.c @@ -17043,7 +17043,7 @@ cp_parser_namespace_definition (cp_parser* parser) has_visibility = handle_namespace_attrs (current_namespace, attribs); - warning (OPT_Wnamespaces, "namepace %qD entered", current_namespace); + warning (OPT_Wnamespaces, "namespace %qD entered", current_namespace); /* Parse the body of the namespace. */ cp_parser_namespace_body (parser); diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 759219f..fa93d62 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2015-09-23 Ville Voutilainen <ville.voutilainen@gmail.com> + + Fix small typos in the coding rule enforcement warnings. + * g++.dg/diagnostic/disable.C: Replace 'namepace' + with 'namespace'. + 2015-09-23 Richard Biener <rguenther@suse.de> PR middle-end/67662 diff --git a/gcc/testsuite/g++.dg/diagnostic/disable.C b/gcc/testsuite/g++.dg/diagnostic/disable.C index a69033d..7d86e07 100644 --- a/gcc/testsuite/g++.dg/diagnostic/disable.C +++ b/gcc/testsuite/g++.dg/diagnostic/disable.C @@ -3,7 +3,7 @@ #include <iostream> #include <algorithm> -namespace foo { } // { dg-warning "namepace" } +namespace foo { } // { dg-warning "namespace" } template <typename X> X Foo (); // { dg-warning "template" } |