diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index 90834f1ffe051a60ed9ee12197101bb3be801344..271561c79f360c7e2920a709ce1698eafbd6e890 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -208,8 +208,8 @@ extern int motion_estimation_method;
 
 /* ME algos sorted by quality */
 //FIXME remove IMHO
-static const int Motion_Est_QTab[] = { ME_ZERO, ME_PHODS, ME_LOG, 
-                                       ME_X1, ME_EPZS, ME_FULL };
+static const __attribute__((unused)) int Motion_Est_QTab[] =
+ { ME_ZERO, ME_PHODS, ME_LOG, ME_X1, ME_EPZS, ME_FULL };
 
 
 #define FF_MAX_B_FRAMES 8
diff --git a/libavcodec/common.h b/libavcodec/common.h
index d9df51426347537e76456a61a8d57de6ec74b49d..7149ef8085495175426dbf2fbac0be57703045d1 100644
--- a/libavcodec/common.h
+++ b/libavcodec/common.h
@@ -185,9 +185,9 @@ inline void dprintf(const char* fmt,...) {}
 #    else
 
 #        ifdef DEBUG
-#            define dprintf(fmt,args...) printf(fmt, ## args)
+#            define dprintf(fmt,...) printf(fmt, __VA_ARGS__)
 #        else
-#            define dprintf(fmt,args...)
+#            define dprintf(fmt,...)
 #        endif
 
 #    endif /* !CONFIG_WIN32 */
diff --git a/libavcodec/dvdata.h b/libavcodec/dvdata.h
index 43297de244d9c82921a4e23c0f4861faaeda3089..16b5786a862a2bc15a33eb85aa6ae3b451633b2f 100644
--- a/libavcodec/dvdata.h
+++ b/libavcodec/dvdata.h
@@ -1293,7 +1293,7 @@ static const uint16_t dv_audio_shuffle625[12][9] = {
   {  31,  67, 103,  21,  57,  93,  11,  47,  83},
 };
 
-static const int dv_audio_frequency[3] = {
+static const __attribute__((unused)) int dv_audio_frequency[3] = {
     48000, 44100, 32000,
 };
     
diff --git a/libavcodec/ffv1.c b/libavcodec/ffv1.c
index a5c83001635a5fe406afad05168687bedb5bf5cf..2ff994e53d658d45a7b410decfbf1db7dca76be9 100644
--- a/libavcodec/ffv1.c
+++ b/libavcodec/ffv1.c
@@ -21,7 +21,7 @@
  
 /**
  * @file ffv1.c
- * FF Video Codec 1 (a experimental lossless codec)
+ * FF Video Codec 1 (an experimental lossless codec)
  */
 
 #include "common.h"
diff --git a/libavcodec/interplayvideo.c b/libavcodec/interplayvideo.c
index 7f54e5d04659e449061b9effd98fece58975fea3..a8a7c0f562041bfaf852230098e050ec8aba284e 100644
--- a/libavcodec/interplayvideo.c
+++ b/libavcodec/interplayvideo.c
@@ -876,7 +876,7 @@ static int ipvideo_decode_init(AVCodecContext *avctx)
 
     if (s->avctx->extradata_size != sizeof(AVPaletteControl)) {
         printf (" Interplay video: expected extradata_size of %d\n",
-            sizeof(AVPaletteControl));
+		(int)sizeof(AVPaletteControl));
         return -1;
     }