Silence gcc asm deprectation warning in output.c.
authorKevin O'Connor <kevin@koconnor.net>
Thu, 8 Oct 2009 00:59:45 +0000 (20:59 -0400)
committerKevin O'Connor <kevin@koconnor.net>
Thu, 8 Oct 2009 00:59:45 +0000 (20:59 -0400)
gcc prefers asm parameters not be casts.

src/output.c

index 28cb024bf572e0037dbbb84c1161055d9b84b696..1637ffdd49deacf042d85f8908e618725c176ffc 100644 (file)
@@ -110,8 +110,9 @@ puts(u16 action, const char *s)
 static void
 puts_cs(u16 action, const char *s)
 {
-    for (;; s++) {
-        char c = GET_GLOBAL(*(u8*)s);
+    char *vs = (char*)s;
+    for (;; vs++) {
+        char c = GET_GLOBAL(*vs);
         if (!c)
             break;
         putc(action, c);