This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Patch to remove stray \n from diagnostic


          sorry ("GCC supports only %u nested scopes\n", scope->depth);

diagnostic in c-decl.c should not have the trailing \n.  Fixed thus.
This diagnostic isn't effectively testable in the testsuite: a test
would run out of memory on almost all systems.  Bootstrapped with no
regressions on i686-pc-linux-gnu.  Applied to mainline.

Joseph S. Myers      (personal mail) (CodeSourcery mail) (Bugzilla assignments and CCs)

2004-11-19  Joseph S. Myers  <>

	* c-decl.c (push_scope): Remove "\n" from end of diagnostic for
	too many nested scopes.

diff -rupN GCC.orig/gcc/c-decl.c GCC/gcc/c-decl.c
--- GCC.orig/gcc/c-decl.c	2004-11-15 22:06:32.000000000 +0000
+++ GCC/gcc/c-decl.c	2004-11-19 13:22:40.000000000 +0000
@@ -634,7 +634,7 @@ push_scope (void)
       if (current_scope && scope->depth == 0)
-	  sorry ("GCC supports only %u nested scopes\n", scope->depth);
+	  sorry ("GCC supports only %u nested scopes", scope->depth);
       current_scope        = scope;

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]