[x264-devel] commit: Suppress saveptr warnings on Windows GCC (U-TACHIKOMA\Jason )

git version control git at videolan.org
Thu Dec 11 07:44:38 CET 2008


x264 | branch: master | U-TACHIKOMA\Jason <Jason at Tachikoma.(none)> | Wed Dec 10 20:53:13 2008 -0800| [99e92e1d4fd7c0daf6371c7fe40e847bb225ad7a] | committer: U-TACHIKOMA\Jason 

Suppress saveptr warnings on Windows GCC

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

 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