aboutsummaryrefslogtreecommitdiffstats
path: root/lcc/src/output.c
diff options
context:
space:
mode:
authortma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2005-10-04 01:21:34 +0000
committertma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2005-10-04 01:21:34 +0000
commit45d6a88841f0db650d615522b1f6594ea72ceb7e (patch)
treedec4fac8ff8638b6a0d8749d52e66d0207eb161b /lcc/src/output.c
parent6d9be1722b2221cae39b389ce218e93d73d99335 (diff)
downloadioquake3-aero-45d6a88841f0db650d615522b1f6594ea72ceb7e.tar.gz
ioquake3-aero-45d6a88841f0db650d615522b1f6594ea72ceb7e.zip
* Dewarninged the lcc and q3asm source
* Removed traditional target platforms from the lcc build. This might break building lcc on Windows using nmake. Submit patches or be quiet :p * Default target for lcc is now bytecode, so -Wf-target=bytecode is no longer needed on the lcc command line git-svn-id: svn://svn.icculus.org/quake3/trunk@132 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'lcc/src/output.c')
-rw-r--r--lcc/src/output.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lcc/src/output.c b/lcc/src/output.c
index dc7a698..a9c93e7 100644
--- a/lcc/src/output.c
+++ b/lcc/src/output.c
@@ -5,7 +5,7 @@ static char *outs(const char *str, FILE *f, char *bp) {
if (f)
fputs(str, f);
else
- while (*bp = *str++)
+ while ((*bp = *str++))
bp++;
return bp;
}
@@ -95,9 +95,10 @@ void vfprint(FILE *f, char *bp, const char *fmt, va_list ap) {
case 'c': if (f) fputc(va_arg(ap, int), f); else *bp++ = va_arg(ap, int); break;
case 'S': { char *s = va_arg(ap, char *);
int n = va_arg(ap, int);
- if (s)
+ if (s) {
for ( ; n-- > 0; s++)
if (f) (void)putc(*s, f); else *bp++ = *s;
+ }
} break;
case 'k': { int t = va_arg(ap, int);
static char *tokens[] = {