OSDN Git Service

Fix a couple things gcc is too dumb to figure out on its own.
authorRob Landley <rob@landley.net>
Thu, 17 Sep 2015 06:49:48 +0000 (01:49 -0500)
committerRob Landley <rob@landley.net>
Thu, 17 Sep 2015 06:49:48 +0000 (01:49 -0500)
configure
toys/other/blkid.c

index 21d56f3..fe5f659 100644 (file)
--- a/configure
+++ b/configure
@@ -10,7 +10,7 @@
 [ -z "$CFLAGS" ] && CFLAGS="-Wall -Wundef -Wno-char-subscripts"
 # Required for our expected ABI. we're 8-bit clean thus "char" must be unsigned.
 CFLAGS="$CFLAGS -funsigned-char"
-[ -z "$OPTIMIZE" ] && OPTIMIZE="-Os -ffunction-sections -fdata-sections -fno-asynchronous-unwind-tables"
+[ -z "$OPTIMIZE" ] && OPTIMIZE="-Os -ffunction-sections -fdata-sections -fno-asynchronous-unwind-tables -fno-strict-aliasing"
 
 # We accept LDFLAGS, but by default don't have anything in it
 [ -z "$LDOPTIMIZE" ] && LDOPTIMIZE="-Wl,--gc-sections"
index fad1159..8d3e770 100644 (file)
@@ -34,7 +34,7 @@ struct fstype {
 };
 
 static const struct fstype fstypes[] = {
-  {"swap", 0x4341505350415753, 8, 4086, 1036, 15, 1052},
+  {"swap", 0x4341505350415753LL, 8, 4086, 1036, 15, 1052},
   {"ext2", 0xEF53, 2, 1080, 1128, 16, 1144}, // keep this first for ext3/4 check
   // NTFS label actually 8/16 0x4d80 but horrible: 16 bit wide characters via
   // codepage, something called a uuid that's only 8 bytes long...