]> git.sesse.net Git - ffmpeg/blobdiff - configure
build: Add _Pragma macro to disable deprecated declaration warnings
[ffmpeg] / configure
index 3420f3c172bfc844e141a9aa8119e86d0cc28ea7..979cc600c36d8a27db3bef083e2af9d46d774484 100755 (executable)
--- a/configure
+++ b/configure
@@ -1319,6 +1319,7 @@ HAVE_LIST="
     nanosleep
     poll_h
     posix_memalign
+    pragma_deprecated
     rdtsc
     sched_getaffinity
     sdl
@@ -3393,6 +3394,11 @@ void foo(char * $restrict_keyword p);
 EOF
 done
 
+check_cc <<EOF && enable pragma_deprecated
+_Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"")
+_Pragma("GCC diagnostic warning \"-Wdeprecated-declarations\"")
+EOF
+
 check_cc <<EOF && enable attribute_packed
 struct { int x; } __attribute__((packed)) x;
 EOF