From: SourceForge.net <no...@so...> - 2012-06-02 14:44:58
|
Patches item #3106650, was opened at 2010-11-10 05:26 Message generated for change (Settings changed) made by spth You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=300599&aid=3106650&group_id=599 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None >Status: Closed Resolution: Accepted Priority: 5 Private: No Submitted By: RvS (ervanes) Assigned to: Philipp Klaus Krause (spth) Summary: Fix for 3007799 Initial Comment: 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) ---------------------------------------------------------------------- Comment By: Philipp Klaus Krause (spth) Date: 2012-06-02 07:43 Message: I'll aplly a modified version of this in revision #7851 since 1) Error message handling has changed a bit since this patch was made. 2) The patch didn't handle the case of a string of size m > n used to initialize an array of size n but with a \0 in position n correctly. Philipp ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=300599&aid=3106650&group_id=599 |