Fix compiler warnings, extra tokens at end of #endif, no newline at
authorpjs <pjs@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Tue, 21 Aug 2001 07:41:28 +0000 (07:41 +0000)
committerpjs <pjs@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Tue, 21 Aug 2001 07:41:28 +0000 (07:41 +0000)
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
as/z80/z80mch.c
device/lib/printf_fast.c
support/Util/NewAlloc.c

index c711699a70c5804dcec85d1515bb8a4b8beb608f..dd404a86e2e9c974225493674571dacabd90631c 100644 (file)
@@ -1,4 +1,4 @@
 /* alloc.h */
 /* DECUS C */
 
-#include <stdlib.h>
\ No newline at end of file
+#include <stdlib.h>
index 9e45ece7114a7c79a3342bbecfaed4ffa4ab905c..7ee7c746fecdc1b90b35c20afeeb3664b2e42487 100644 (file)
@@ -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 */
index a385aff84abf76df564005c0e900677207e0186a..09150b3267838e08b5d648e55393fe67f6f80d25 100644 (file)
@@ -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
index 05ca4fe38f20f9ac82ad8e21d7f266afe1d7e49b..c603b17ce38323b3e3f9f348593d1646a8c58ddd 100644 (file)
@@ -30,6 +30,7 @@ functions.
 #include <stdio.h>
 #include <malloc.h>
 #include <stdlib.h>
+#include <string.h>
 #include <memory.h>
 
 #include "newalloc.h"