From: hpa Date: Sat, 29 May 2004 22:14:17 +0000 (+0000) Subject: Clear some gcc warnings X-Git-Tag: syslinux-3.11~426 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d1f854de404386976379942942ea7de2fa2cc498;p=platform%2Fupstream%2Fsyslinux.git Clear some gcc warnings --- 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) )