From bf7a3a634bf6294f0d8f6c5fdb8911e8ee7ed88b Mon Sep 17 00:00:00 2001 From: borutr Date: Thu, 1 Jan 2009 12:14:27 +0000 Subject: [PATCH] * as/link/asxxxx_config.h.in: fixed warning: extra tokens at end of #endif directive * src/z80/peep.c: fixed warning: suggest parentheses around && within || git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@5316 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- ChangeLog | 10 +++++++++- as/link/asxxxx_config.h.in | 2 +- src/z80/peep.c | 4 ++-- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 8c8c6776..dd28e267 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,7 +1,15 @@ +2009-01-01 Borut Razem + + * as/link/asxxxx_config.h.in: + fixed warning: extra tokens at end of #endif directive + * src/z80/peep.c: + fixed warning: suggest parentheses around && within || + 2008-12-31 Borut Razem * configure, configure.in, config.dsp, config_vc.awk, - as\link\asxxxx_config.h.in, as\link\hc08\lkelf.c, as\link\aslink.h: + as/link/asxxxx_config.h.in, as/link/hc08/lkelf.c, as/link/aslink.h, + as/link/hc08/Makefile.in, as/link/mcs51/Makefile.in: introduced asxxxx_config.h.in 2008-12-30 Philipp Klaus Krause diff --git a/as/link/asxxxx_config.h.in b/as/link/asxxxx_config.h.in index ebd9ee48..7d2128ed 100644 --- a/as/link/asxxxx_config.h.in +++ b/as/link/asxxxx_config.h.in @@ -43,4 +43,4 @@ # define TYPE_UDWORD unsigned TYPE_DWORD #endif -#endif __ASXXXX_CONFIG_H +#endif /* __ASXXXX_CONFIG_H */ diff --git a/src/z80/peep.c b/src/z80/peep.c index ff72544b..43781745 100644 --- a/src/z80/peep.c +++ b/src/z80/peep.c @@ -280,8 +280,8 @@ z80UncondJump(const lineNode *pl) static bool z80CondJump(const lineNode *pl) { - if((strncmp(pl->line, "jp\t", 3) == 0 || - strncmp(pl->line, "jr\t", 3) == 0) && strchr(pl->line, ',') != 0 || + if(((strncmp(pl->line, "jp\t", 3) == 0 || + strncmp(pl->line, "jr\t", 3) == 0) && strchr(pl->line, ',') != 0) || strncmp(pl->line, "djnz\t", 5) == 0) return TRUE; return FALSE; -- 2.30.2