diff options
author | Diego Biurrun <diego@biurrun.de> | 2015-12-04 12:43:10 +0100 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2016-11-02 10:33:39 +0100 |
commit | 2025d3787158ba272a1b8fbc0493fa20dd7a8484 (patch) | |
tree | 6610df929a3e8054ef9c1978c80253025c96ad3e | |
parent | f4ca8ea92a8b36fe723412aefafc1b2fa89f8dc6 (diff) | |
download | ffmpeg-2025d3787158ba272a1b8fbc0493fa20dd7a8484.tar.gz |
doc: Turn off noisy deprecation warnings in the option printer
-rw-r--r-- | doc/print_options.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/doc/print_options.c b/doc/print_options.c index aa75a00ba2..eb54f07754 100644 --- a/doc/print_options.c +++ b/doc/print_options.c @@ -23,15 +23,21 @@ */ #include <stddef.h> +#include <stdio.h> #include <string.h> #include <float.h> -#include "libavformat/avformat.h" -#include "libavformat/options_table.h" -#include "libavcodec/avcodec.h" -#include "libavcodec/options_table.h" +#include "libavutil/attributes.h" #include "libavutil/opt.h" +/* Forcibly turn off deprecation warnings, which just add noise here. */ +#undef attribute_deprecated +#define attribute_deprecated + +#include "libavcodec/options_table.h" + +#include "libavformat/options_table.h" + static void print_usage(void) { fprintf(stderr, "Usage: enum_options type\n" |