From d741a53f2a4c11679fd4b5072077b0e3ead36d3c Mon Sep 17 00:00:00 2001 From: pjs Date: Tue, 21 Aug 2001 07:41:28 +0000 Subject: [PATCH] Fix compiler warnings, extra tokens at end of #endif, no newline at end of file, implicit declaration of memset (new glibc defines in string.h) git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1157 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- as/mcs51/alloc.h | 2 +- as/z80/z80mch.c | 2 +- device/lib/printf_fast.c | 2 +- support/Util/NewAlloc.c | 1 + 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/as/mcs51/alloc.h b/as/mcs51/alloc.h index c711699a..dd404a86 100644 --- a/as/mcs51/alloc.h +++ b/as/mcs51/alloc.h @@ -1,4 +1,4 @@ /* alloc.h */ /* DECUS C */ -#include \ No newline at end of file +#include diff --git a/as/z80/z80mch.c b/as/z80/z80mch.c index 9e45ece7..7ee7c746 100644 --- a/as/z80/z80mch.c +++ b/as/z80/z80mch.c @@ -542,7 +542,7 @@ struct mne *mp; case S_DJNZ: case S_JR: if ((v1 = admode(CND)) != 0 && rf != S_DJNZ) { -#else GAMEBOY +#else /* GAMEBOY */ case S_JR: if ((v1 = admode(CND)) != 0) { #endif /* GAMEBOY */ diff --git a/device/lib/printf_fast.c b/device/lib/printf_fast.c index a385aff8..09150b32 100644 --- a/device/lib/printf_fast.c +++ b/device/lib/printf_fast.c @@ -176,7 +176,7 @@ printf_str_space: lcall printf_space pop dph pop dpl -#endif FIELD_WIDTH +#endif // FIELD_WIDTH printf_str_loop: lcall __gptrget diff --git a/support/Util/NewAlloc.c b/support/Util/NewAlloc.c index 05ca4fe3..c603b17c 100644 --- a/support/Util/NewAlloc.c +++ b/support/Util/NewAlloc.c @@ -30,6 +30,7 @@ functions. #include #include #include +#include #include #include "newalloc.h" -- 2.47.2