This patch fixes bug #3007799: Different warning for string initializer fitting without \0.
The C99 standard allows initializers to fill char arrays without the \0 terminator. This now generates an warning "excess elements in string initializer after <text>" .
Implemented is a different warning for this case: "string <name> cannot be terminated properly". With --less-pedantic the warning is suppressed.
The patch also contains the text for the changelog (without committer info)
Log in to post a comment.