This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit acde43703fea03d76c7777c26340dd80f23ea91d Author: Andreas Rheinhardt <[email protected]> AuthorDate: Mon Jan 26 22:02:09 2026 +0100 Commit: Andreas Rheinhardt <[email protected]> CommitDate: Fri Feb 20 11:59:37 2026 +0100 avutil/error: Remove size from error_stringtable This stringtable is a concatenation of strings, with their own trailing \0. Without an explicit size said stringtable ends with two \0 (one from the last string and one more because it is initialized via a string literal); the explicit size exists to discard the last \0. Yet this makes GCC (but not Clang) think that this is an unterminated string, leading to warnings when -Wunterminated-string-initialization is enabled. So just remove the explicit size to avoid this. (An alternative would be to mark this as a non-string for GCC, but not for Clang, but this has been deemed ugly; another alternative would be to omit the internal \0 from the stringtable and use length fields instead, but the necessary copying code more than outweighs the size benefits of omitting the \0.) Signed-off-by: Andreas Rheinhardt <[email protected]> --- libavutil/error.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libavutil/error.c b/libavutil/error.c index 23a2a0a53a..333d75e4ac 100644 --- a/libavutil/error.c +++ b/libavutil/error.c @@ -107,11 +107,10 @@ enum { #if !HAVE_STRERROR_R STRERROR_LIST(OFFSET) #endif - ERROR_LIST_SIZE }; #define STRING(CODE, DESC) DESC "\0" -static const char error_stringtable[ERROR_LIST_SIZE] = +static const char error_stringtable[] = AVERROR_LIST(STRING, NOTHING) #if !HAVE_STRERROR_R STRERROR_LIST(STRING) _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
