projects
/
seabios.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a3dfea
)
Silence gcc asm deprectation warning in output.c.
author
Kevin O'Connor
<kevin@koconnor.net>
Thu, 8 Oct 2009 00:59:45 +0000
(20:59 -0400)
committer
Kevin 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
patch
|
blob
|
history
diff --git
a/src/output.c
b/src/output.c
index 28cb024bf572e0037dbbb84c1161055d9b84b696..1637ffdd49deacf042d85f8908e618725c176ffc 100644
(file)
--- a/
src/output.c
+++ b/
src/output.c
@@
-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);