]> granicus.if.org Git - libx264/commitdiff
Suppress saveptr warnings on Windows GCC
authorFiona Glaser <fiona@x264.com>
Thu, 11 Dec 2008 04:53:13 +0000 (20:53 -0800)
committerFiona Glaser <fiona@x264.com>
Thu, 11 Dec 2008 08:44:10 +0000 (00:44 -0800)
encoder/ratecontrol.c

index c1038aae3881b22f93d788b82709fbfb9d9ca8e4..bb3797d805115c82cd9a3912fdcd30214d98ffd5 100644 (file)
@@ -558,7 +558,7 @@ int x264_ratecontrol_new( x264_t *h )
 static int parse_zone( x264_t *h, x264_zone_t *z, char *p )
 {
     int len = 0;
-    char *tok, *saveptr;
+    char *tok, UNUSED *saveptr;
     z->param = NULL;
     z->f_bitrate_factor = 1;
     if( 3 <= sscanf(p, "%u,%u,q=%u%n", &z->i_start, &z->i_end, &z->i_qp, &len) )
@@ -601,7 +601,7 @@ static int parse_zones( x264_t *h )
     int i;
     if( h->param.rc.psz_zones && !h->param.rc.i_zones )
     {
-        char *p, *tok, *saveptr;
+        char *p, *tok, UNUSED *saveptr;
         char *psz_zones = x264_malloc( strlen(h->param.rc.psz_zones)+1 );
         strcpy( psz_zones, h->param.rc.psz_zones );
         h->param.rc.i_zones = 1;