changeset 28716:0a8b23440a61

Fix two gcc warnings. Patch by Grigori G (greg chown ath cx).
author eugeni
date Fri, 27 Feb 2009 23:06:43 +0000
parents d609e9b8732d
children 7bbe6626f0e0
files libass/ass_render.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libass/ass_render.c	Fri Feb 27 23:06:40 2009 +0000
+++ b/libass/ass_render.c	Fri Feb 27 23:06:43 2009 +0000
@@ -1144,7 +1144,7 @@
 			return ' ';
 		}
 	}
-	chr = utf8_get_char(&p);
+	chr = utf8_get_char((const char **)&p);
 	*str = p;
 	return chr;
 }
@@ -2043,7 +2043,7 @@
 			center.x = x2scr(render_context.org_x);
 			center.y = y2scr(render_context.org_y);
 		} else {
-			int bx, by;
+			int bx = 0, by = 0;
 			get_base_point(bbox, alignment, &bx, &by);
 			center.x = device_x + bx;
 			center.y = device_y + by;