[x264-devel] commit: Suppress saveptr warnings on Windows GCC (Jason Garrett-Glaser )

git version control git at videolan.org
Thu Dec 11 09:47:02 CET 2008


x264 | branch: master | Jason Garrett-Glaser <darkshikari at gmail.com> | Wed Dec 10 20:53:13 2008 -0800| [877d22e071f1b73fb33c628cc273e2819d10c3de] | committer: Jason Garrett-Glaser 

Suppress saveptr warnings on Windows GCC

> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=877d22e071f1b73fb33c628cc273e2819d10c3de
---

 encoder/ratecontrol.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/encoder/ratecontrol.c b/encoder/ratecontrol.c
index 3d3e894..6932388 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;



More information about the x264-devel mailing list