Skip to content

Commit

Permalink
libblkid: fix compiler warnings
Browse files Browse the repository at this point in the history
warning: extra ';' outside of a function [-Wextra-semi]

warning: embedding a directive within macro arguments has undefined
behavior [-Wembedded-directive]

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
  • Loading branch information
kerolasa committed Mar 16, 2015
1 parent a0fd24e commit cf92286
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion libblkid/src/superblocks/bcache.c
Expand Up @@ -117,7 +117,7 @@ static int probe_bcache (blkid_probe pr, const struct blkid_idmag *mag)
return BLKID_PROBE_NONE;

return BLKID_PROBE_OK;
};
}

const struct blkid_idinfo bcache_idinfo =
{
Expand Down
9 changes: 5 additions & 4 deletions libblkid/src/superblocks/minix.c
Expand Up @@ -21,6 +21,7 @@ static int get_minix_version(const unsigned char *data, int *other_endian)
struct minix_super_block *sb = (struct minix_super_block *) data;
struct minix3_super_block *sb3 = (struct minix3_super_block *) data;
int version = 0;
char *endian;

*other_endian = 0;

Expand Down Expand Up @@ -60,13 +61,13 @@ static int get_minix_version(const unsigned char *data, int *other_endian)
if (!version)
return -1;

DBG(LOWPROBE, ul_debug("minix version %d detected [%s]", version,
#if defined(WORDS_BIGENDIAN)
*other_endian ? "LE" : "BE"
endian = *other_endian ? "LE" : "BE";
#else
*other_endian ? "BE" : "LE"
endian = *other_endian ? "BE" : "LE";
#endif
));
DBG(LOWPROBE, ul_debug("minix version %d detected [%s]", version,
endian));
return version;
}

Expand Down

0 comments on commit cf92286

Please sign in to comment.