This will convert the gcc warning -Wno-maybe-unintialized into
-Wno-sometimes-uninitialized for clang
---
Here is the version that filers the warnings.
Suggestions for improved commit message welcome.
Vittorio

 configure | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/configure b/configure
index 4aa66c0..9248ac2 100755
--- a/configure
+++ b/configure
@@ -2389,6 +2389,15 @@ ccc_flags(){
    done
 }
 
+clang_flags(){
+    for flag; do
+        case $flag in
+            -Wno-maybe-uninitialized) echo -Wno-sometimes-uninitialized ;;
+            *)                        echo $flag
+        esac
+    done
+}
+
 cparser_flags(){
     for flag; do
         case $flag in
@@ -2607,6 +2616,7 @@ probe_cc(){
         _depflags='-MMD'
         _cflags_speed='-O3'
         _cflags_size='-Os'
+        _flags_filter=clang_flags
     elif $_cc -V 2>&1 | grep -q Sun; then
         _type=suncc
         _ident=$($_cc -V 2>&1 | head -n1 | cut -d' ' -f 2-)
-- 
1.8.4

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to