Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
libinstaller/fat.c: remove variables set but not used
gcc 4.6 warns on variables set but not used, so remove them.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
  • Loading branch information
H. Peter Anvin committed Mar 16, 2011
1 parent 6f39c9f commit 0fb43d6
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions libinstaller/fat.c
Expand Up @@ -42,15 +42,12 @@ void syslinux_make_bootsect(void *bs)
*/
const char *syslinux_check_bootsect(const void *bs)
{
int veryold;
int sectorsize;
long long sectors, fatsectors, dsectors;
long long clusters;
int rootdirents, clustersize;
const struct boot_sector *sectbuf = bs;

veryold = 0;

/* Must be 0xF0 or 0xF8..0xFF */
if (get_8(&sectbuf->bsMedia) != 0xF0 && get_8(&sectbuf->bsMedia) < 0xF8)
return "invalid media signature (not a FAT filesystem?)";
Expand Down

0 comments on commit 0fb43d6

Please sign in to comment.