diff options
author | Diego Biurrun <diego@biurrun.de> | 2013-03-27 18:23:01 +0100 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2013-08-02 19:19:02 +0200 |
commit | 3a7050ffed5ce061b114a11e4de4b77aba8efa0b (patch) | |
tree | f60adb7305f1f04290e0d2de75b41a87ce042f9f /configure | |
parent | 79be2c325c5ee8f7ac9e28399e51986ebe99bb3c (diff) | |
download | ffmpeg-3a7050ffed5ce061b114a11e4de4b77aba8efa0b.tar.gz |
build: Add _Pragma macro to disable deprecated declaration warnings
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 |