[FFmpeg-cvslog] doc: Turn off noisy deprecation warnings in the option printer

Diego Biurrun git at videolan.org
Wed Mar 29 16:23:05 EEST 2017


ffmpeg | branch: master | Diego Biurrun <diego at biurrun.de> | Fri Dec  4 12:43:10 2015 +0100| [2025d3787158ba272a1b8fbc0493fa20dd7a8484] | committer: Diego Biurrun

doc: Turn off noisy deprecation warnings in the option printer

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2025d3787158ba272a1b8fbc0493fa20dd7a8484
---

 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 aa75a00..eb54f07 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"



More information about the ffmpeg-cvslog mailing list