[FFmpeg-cvslog] cmdutils: Mark conditionally used variable as av_unused

Diego Biurrun git at videolan.org
Wed Nov 1 23:02:55 EET 2017


ffmpeg | branch: master | Diego Biurrun <diego at biurrun.de> | Mon May 22 16:27:51 2017 +0200| [908f737d6c2900b5d34319ca6ea1d1cb71221463] | committer: Diego Biurrun

cmdutils: Mark conditionally used variable as av_unused

avtools/cmdutils.c:1234:28: warning: unused variable ‘pix_fmt’ [-Wunused-variable]

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

 avtools/cmdutils.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/avtools/cmdutils.c b/avtools/cmdutils.c
index b0445eb85b..727e2835eb 100644
--- a/avtools/cmdutils.c
+++ b/avtools/cmdutils.c
@@ -35,6 +35,7 @@
 #include "libavdevice/avdevice.h"
 #include "libavresample/avresample.h"
 #include "libswscale/swscale.h"
+#include "libavutil/attributes.h"
 #include "libavutil/avassert.h"
 #include "libavutil/avstring.h"
 #include "libavutil/mathematics.h"
@@ -1231,7 +1232,7 @@ int show_pix_fmts(void *optctx, const char *opt, const char *arg)
 #endif
 
     while ((pix_desc = av_pix_fmt_desc_next(pix_desc))) {
-        enum AVPixelFormat pix_fmt = av_pix_fmt_desc_get_id(pix_desc);
+        enum AVPixelFormat av_unused pix_fmt = av_pix_fmt_desc_get_id(pix_desc);
         printf("%c%c%c%c%c %-16s       %d            %2d\n",
                sws_isSupportedInput (pix_fmt)              ? 'I' : '.',
                sws_isSupportedOutput(pix_fmt)              ? 'O' : '.',



More information about the ffmpeg-cvslog mailing list