configure: clang: add -Qunused-arguments to as|ld_flags as well
authorJanne Grunau <janne-libav@jannau.net>
Fri, 7 Feb 2014 18:23:28 +0000 (19:23 +0100)
committerJanne Grunau <janne-libav@jannau.net>
Sat, 8 Feb 2014 12:38:36 +0000 (13:38 +0100)
configure

index 81a4c7a..023042f 100755 (executable)
--- a/configure
+++ b/configure
@@ -4208,6 +4208,18 @@ elif enabled_any msvc icl; then
     fi
 fi
 
+case $as_type in
+    clang)
+        add_asflags -Qunused-arguments
+    ;;
+esac
+
+case $ld_type in
+    clang)
+        check_ldflags -Qunused-arguments
+    ;;
+esac
+
 case $target_os in
     osf1)
         enabled ccc && add_ldflags '-Wl,-expect_unresolved,*'