This is the mail archive of the gcc-patches@gcc.gnu.org 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]

Patch: warning fix


I thought I had sent this late last night but it's not showing up in the web
archives...


I think GCC is saying "minimum" when it really means "maximum".


2001-01-31  Anthony Green  <green@redhat.com>

	* c-common.c (combine_strings): Fix string length warning.

Index: c-common.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/c-common.c,v
retrieving revision 1.224
diff -u -p -2 -c -u -r1.224 c-common.c
--- c-common.c	2001/01/28 01:50:04	1.224
+++ c-common.c	2001/01/31 21:00:05
@@ -467,5 +467,5 @@ combine_strings (strings)

   if (pedantic && nchars - 1 > nchars_max && c_language == clk_c)
-    pedwarn ("string length `%d' is greater than the minimum length `%d'
ISO C%d is required to support",
+    pedwarn ("string length `%d' is greater than the maximum length `%d'
ISO C%d is required to support",
 	     nchars - 1, nchars_max, flag_isoc99 ? 99 : 89);




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