Jochen Voss <[EMAIL PROTECTED]> writes:
> char string3[2] = "12";
> char d[]="d";
> char string4[2] = "123";
> char e[]="e";
> Here 'string3' and 'string4' are unterminated, as can be seen from the
> program output at the end. But only the initialiser for 'string4'
> gives a warn
Jochen Voss <[EMAIL PROTECTED]> writes:
> one very useful feature of gcc is, that it warns you when you
> produce unterminated strings by using too long initialisers.
> Unfortunately the warning only kicks in, if the initialiser is at
> least two bytes longer than the string buffer.
This is delib
Processing commands for [EMAIL PROTECTED]:
> forwarded 392880 http://gcc.gnu.org/PR29468
Bug#392880: gcc-4.1: off-by-one error for string initialiser warnings
Noted your statement that Bug has been forwarded to http://gcc.gnu.org/PR29468.
> tags 392880 + upstream
Bug#392880: gcc-4.1: off-
Package: gcc-4.1
Version: 4.1.1-16
Severity: normal
Hello,
one very useful feature of gcc is, that it warns you when you produce
unterminated strings by using too long initialisers. Unfortunately
the warning only kicks in, if the initialiser is at least two bytes
longer than the string buffer.
4 matches
Mail list logo