aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhpa <hpa>2004-05-29 22:14:17 +0000
committerhpa <hpa>2004-05-29 22:14:17 +0000
commitd1f854de404386976379942942ea7de2fa2cc498 (patch)
tree99efcef2980bbb300d7653f1d2bc022dd5734259
parent975a4c3b343c09a340d95f1a2a4ece3556c57a10 (diff)
downloadsyslinux-elf-syslinux-2.10-pre5.tar.gz
syslinux-elf-syslinux-2.10-pre5.tar.xz
syslinux-elf-syslinux-2.10-pre5.zip
Clear some gcc warningssyslinux-2.10-pre5
-rw-r--r--sample/chain.c6
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) )