diff options
author | hpa <hpa> | 2004-05-29 22:14:17 +0000 |
---|---|---|
committer | hpa <hpa> | 2004-05-29 22:14:17 +0000 |
commit | d1f854de404386976379942942ea7de2fa2cc498 (patch) | |
tree | 99efcef2980bbb300d7653f1d2bc022dd5734259 | |
parent | 975a4c3b343c09a340d95f1a2a4ece3556c57a10 (diff) | |
download | syslinux-d1f854de404386976379942942ea7de2fa2cc498.tar.gz |
Clear some gcc warningssyslinux-2.10-pre5
-rw-r--r-- | sample/chain.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sample/chain.c b/sample/chain.c index 6a8618b6..115b1379 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) ) |