]> git.videolan.org Git - x264.git/commitdiff
Suppress saveptr warnings on Windows GCC
authorJason Garrett-Glaser <darkshikari@gmail.com>
Thu, 11 Dec 2008 04:53:13 +0000 (20:53 -0800)
committerJason Garrett-Glaser <darkshikari@gmail.com>
Thu, 11 Dec 2008 08:44:10 +0000 (00:44 -0800)
encoder/ratecontrol.c

index 3d3e894244166f9bcd131588a91297e63b666005..6932388553857286c725b5b048cc32b86bb15613 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;