[FFmpeg-cvslog] ffplay: mark i variable in toggle_full_screen() as unused

Stefano Sabatini git at videolan.org
Sun Jan 15 14:53:18 CET 2012


ffmpeg | branch: master | Stefano Sabatini <stefasab at gmail.com> | Sun Jan 15 13:27:45 2012 +0100| [bb4c0abc7c9b13772847b9411aaad909afe8560f] | committer: Stefano Sabatini

ffplay: mark i variable in toggle_full_screen() as unused

Fix gcc warning:
ffplay.c: In function ‘toggle_full_screen’:
ffplay.c:2792:9: warning: unused variable ‘i’ [-Wunused-variable]

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

 ffplay.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ffplay.c b/ffplay.c
index 749cfc7..4fd8b36 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -2769,7 +2769,7 @@ static void stream_cycle_channel(VideoState *is, int codec_type)
 
 static void toggle_full_screen(VideoState *is)
 {
-    int i;
+    av_unused int i;
     is_full_screen = !is_full_screen;
 #if defined(__APPLE__) && SDL_VERSION_ATLEAST(1, 2, 14)
     /* OS X needs to reallocate the SDL overlays */



More information about the ffmpeg-cvslog mailing list