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]

Re: Patch: warning fix


Anthony Green wrote:-

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

No, I think this has come up before; it does mean minimum.  Read it
slowly this time, with "ISO C implementations" instead of "ISO C" :-)

Neil.

> 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]