Commit 16d789fba9f001547802c53b5e1015fed564b23f

Sam Lantinga 2020-11-24T07:30:39

Disable compiler warning when using -fobjc-weak building C code

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/configure b/configure
index 9ab03fa..e3dc06c 100755
--- a/configure
+++ b/configure
@@ -23199,7 +23199,7 @@ $as_echo "$enable_joystick_mfi" >&6; }
 
 $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
 
-            EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-weak"
+            EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-weak -Wno-unused-command-line-argument"
             EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
         fi
     fi