This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

commit 9a7e0f10526f11a22fb12f1678198c09fe41dff6
Author:     Andreas Rheinhardt <[email protected]>
AuthorDate: Mon Jan 5 21:55:21 2026 +0100
Commit:     Andreas Rheinhardt <[email protected]>
CommitDate: Fri Feb 20 11:59:37 2026 +0100

    configure: Enable -Wunterminated-string-initialization warning
    
    When an array of pointers to strings is converted into
    an array of constant-length strings, one has to find out
    the maximum size of the strings. Currently no warning will
    be emitted If one forgets to account for the trailing zero,
    making this optimization dangerous (think of the scenario
    where the array will be modified without adjusting the maximum
    size of the strings).
    
    The -Wunterminated-string-initialization warning catches these cases.
    It is supported by GCC 15.1 and Clang 21. It only requires to mark
    the few instances of arrays initialized via string literals that
    are not supposed to be strings with the nonstring attribute; this
    has already been done in the previous commit.
    
    Signed-off-by: Andreas Rheinhardt <[email protected]>
---
 configure | 1 +
 1 file changed, 1 insertion(+)

diff --git a/configure b/configure
index 28d88613ab..e5c516fd25 100755
--- a/configure
+++ b/configure
@@ -7858,6 +7858,7 @@ check_warning -Wundef
 check_warning -Wempty-body
 check_c_warning -Wmissing-prototypes
 check_c_warning -Wstrict-prototypes
+check_c_warning -Wunterminated-string-initialization
 
 if enabled extra_warnings; then
     check_warning -Wcast-qual

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to