From d1f854de404386976379942942ea7de2fa2cc498 Mon Sep 17 00:00:00 2001 From: hpa Date: Sat, 29 May 2004 22:14:17 +0000 Subject: [PATCH] Clear some gcc warnings --- sample/chain.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sample/chain.c b/sample/chain.c index 6a8618b..115b137 100644 --- a/sample/chain.c +++ b/sample/chain.c @@ -31,6 +31,9 @@ int printf(const char *, ...); int puts(const char *); unsigned int skip_atou(char * const *); +#define memset(x,y,z) __builtin_memset(x,y,z) +#define memcpy(x,y,z) __builtin_memcpy(x,y,z) + #define SECTOR 512 /* bytes/sector */ static inline void error(const char *msg) @@ -260,12 +263,11 @@ struct part_entry *find_logical_partition(int whichpart, char *table, struct par int __start(void) { - char *mbr, *boot_sector; + char *mbr, *boot_sector = NULL; struct part_entry *partinfo; char *cmdline = __com32.cs_cmdline; int hd, drive, whichpart; static com32sys_t inreg; /* In bss, so zeroed automatically */ - int retry; /* Parse command line */ while ( isspace(*cmdline) ) -- 2.7.4