From 877d22e071f1b73fb33c628cc273e2819d10c3de Mon Sep 17 00:00:00 2001 From: Jason Garrett-Glaser Date: Wed, 10 Dec 2008 20:53:13 -0800 Subject: [PATCH] Suppress saveptr warnings on Windows GCC --- encoder/ratecontrol.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/encoder/ratecontrol.c b/encoder/ratecontrol.c index 3d3e8942..69323885 100644 --- a/encoder/ratecontrol.c +++ b/encoder/ratecontrol.c @@ -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; -- 2.47.3