doc: Turn off noisy deprecation warnings in the option printer
authorDiego Biurrun <diego@biurrun.de>
Fri, 4 Dec 2015 11:43:10 +0000 (12:43 +0100)
committerDiego Biurrun <diego@biurrun.de>
Wed, 2 Nov 2016 09:33:39 +0000 (10:33 +0100)
doc/print_options.c

index aa75a00..eb54f07 100644 (file)
  */
 
 #include <stddef.h>
  */
 
 #include <stddef.h>
+#include <stdio.h>
 #include <string.h>
 #include <float.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"
 
 #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"
 static void print_usage(void)
 {
     fprintf(stderr, "Usage: enum_options type\n"