From: cuz Date: Fri, 10 Oct 2003 12:24:47 +0000 (+0000) Subject: Remove a watcom warning X-Git-Tag: V2.12.0~1284 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c569764a83216b13b55cebbd66b1d1f132140ddb;p=cc65 Remove a watcom warning git-svn-id: svn://svn.cc65.org/cc65/trunk@2491 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/co65/o65.c b/src/co65/o65.c index 5a14d17f9..3ab50c132 100644 --- a/src/co65/o65.c +++ b/src/co65/o65.c @@ -86,11 +86,13 @@ static unsigned long ReadO65Size (FILE* F, const O65Header* H) * header) from the o65 file. */ { + unsigned long Size = 0; /* Initialize to avoid warnings */ switch (H->mode & O65_SIZE_MASK) { - case O65_SIZE_32BIT: return Read32 (F); - case O65_SIZE_16BIT: return Read16 (F); + case O65_SIZE_32BIT: Size = Read32 (F); + case O65_SIZE_16BIT: Size = Read16 (F); default: Internal ("Invalid size field value in o65 header"); } + return Size; }