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

Git pushed a commit to branch master
in repository ffmpeg.

commit bc640185e73f3fa4ae2682683fed0eec9a170173
Author:     Jun Zhao <[email protected]>
AuthorDate: Fri Nov 13 20:36:24 2026 +0800
Commit:     Jun Zhao <[email protected]>
CommitDate: Fri Nov 13 22:02:43 2026 +0000

    configure: let the C compiler decide check_warning
    
    Probe C++ first and C last so that the return status of check_warning()
    reflects whether the C compiler accepted the option, matching
    check_allcflags() after 4b39049f44.
    
    Otherwise, when C accepts a warning flag while C++ is missing or uses a
    different frontend that rejects it, check_warning() adds the flag to
    CFLAGS yet returns non-zero.
    
    Suggested-by: Kacper Michajłow <[email protected]>
    Signed-off-by: Jun Zhao <[email protected]>
---
 configure | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure b/configure
index 6979344888..65fc2c3a39 100755
--- a/configure
+++ b/configure
@@ -7832,8 +7832,8 @@ enabled debug && add_allcflags -g"$debuglevel" && 
add_asflags -g"$debuglevel"
 check_warning(){
     warning_flag=$1
     flag_to_add=${2:-$1}
-    test_cflags -Werror $warning_flag && add_cflags $flag_to_add
     test_cxxflags -Werror $warning_flag && add_cxxflags $flag_to_add
+    test_cflags -Werror $warning_flag && add_cflags $flag_to_add
 }
 
 check_disable_warning(){

-- 
To stop receiving notification emails like this one, please contact
[email protected].
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to