From 2025d3787158ba272a1b8fbc0493fa20dd7a8484 Mon Sep 17 00:00:00 2001 From: Diego Biurrun Date: Fri, 4 Dec 2015 12:43:10 +0100 Subject: [PATCH] doc: Turn off noisy deprecation warnings in the option printer --- doc/print_options.c | 14 ++++++++++---- 1 file 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 +#include #include #include -#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"