From: borutr Date: Sun, 4 Jan 2009 17:23:15 +0000 (+0000) Subject: * src/z80/peep.c: fixed msvc warning C4047: X-Git-Url: https://git.gag.com/?p=fw%2Fsdcc;a=commitdiff_plain;h=d21ded48bbf95a0a9e64b971ced755f28fcbe2b8 * src/z80/peep.c: fixed msvc warning C4047: 'return' : 'int ' differs in levels of indirection from 'char *' * config.dsp: as/lib corrected to as/link git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@5329 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/ChangeLog b/ChangeLog index c33480a8..5be4c1f1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,9 @@ * doc/README.txt: updated John Hartman's e-mail address * as/link/lkrel.c, as/link/lksdcclib.c: fixed bug #2484677: Linker hangs + * src/z80/peep.c: fixed msvc warning C4047: + 'return' : 'int ' differs in levels of indirection from 'char *' + * config.dsp: as/lib corrected to as/link 2009-01-04 Philipp Klaus Krause diff --git a/config.dsp b/config.dsp index 68142ae4..2d30ad43 100644 --- a/config.dsp +++ b/config.dsp @@ -68,7 +68,7 @@ SOURCE=.\as\link\asxxxx_config.h.in # Begin Custom Build InputPath=.\as\link\asxxxx_config.h.in -"as/lib/asxxxx_config.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" +"as/link/asxxxx_config.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" gawk -f configure_vc.awk as/link/asxxxx_config.h.in > as/link/asxxxx_config.h # End Custom Build @@ -78,7 +78,7 @@ InputPath=.\as\link\asxxxx_config.h.in # Begin Custom Build InputPath=.\as\link\asxxxx_config.h.in -"as/lib/asxxxx_config.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" +"as/link/asxxxx_config.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" gawk -f configure_vc.awk as/link/asxxxx_config.h.in > as/link/asxxxx_config.h # End Custom Build diff --git a/src/z80/peep.c b/src/z80/peep.c index affdf190..b30335c2 100644 --- a/src/z80/peep.c +++ b/src/z80/peep.c @@ -195,9 +195,7 @@ findLabel (const lineNode *pl) /* Check if reading arg implies reading what. */ static bool argCont(const char *arg, const char *what) { - if(arg[0] == '#') - return FALSE; - return(strstr(arg, what));; + return (arg[0] == '#') ? FALSE : strstr(arg, what) != NULL; } static bool @@ -262,7 +260,7 @@ z80MightRead(const lineNode *pl, const char *what) strncmp(pl->line, "dec\t", 4) == 0 || strncmp(pl->line, "inc\t", 4) == 0 || strncmp(pl->line, "rl\t", 4) == 0 || - strncmp(pl->line, "rr\t", 4) == 0 || + strncmp(pl->line, "rr\t", 4) == 0 || strncmp(pl->line, "sla\t", 4) == 0 || strncmp(pl->line, "sra\t", 4) == 0 || strncmp(pl->line, "srl\t", 4) == 0)