aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Whitney <enwlinux@gmail.com>2013-01-04 10:27:12 +0000
committerTheodore Ts'o <tytso@mit.edu>2013-01-08 21:04:03 -0500
commitda489dd2f3287b644c792c4e7ffb530a8ae0b9a2 (patch)
tree2ce15d1fd65b2930b165515ede9326a6e582d7d1
parentf0257d8891c602cabc7358a5ca826444a172ccf5 (diff)
downloade2fsprogs-da489dd2f3287b644c792c4e7ffb530a8ae0b9a2.tar.gz
e2fsprogs-da489dd2f3287b644c792c4e7ffb530a8ae0b9a2.tar.xz
e2fsprogs-da489dd2f3287b644c792c4e7ffb530a8ae0b9a2.zip
config: silence printf format warnings
The printfs in the asm_types.c code contained within parse-types.sh expect sizeof to return an int. Fix this for architectures where this isn't true (x86_64, etc.) so we don't see warning messages while running the configure script. Signed-off-by: Eric Whitney <enwlinux@gmail.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
-rwxr-xr-xconfig/parse-types.sh16
1 files changed, 8 insertions, 8 deletions
diff --git a/config/parse-types.sh b/config/parse-types.sh
index d7cb9cc1..c02d8cb9 100755
--- a/config/parse-types.sh
+++ b/config/parse-types.sh
@@ -31,7 +31,7 @@ main(int argc, char **argv)
#ifdef __U8_TYPEDEF
if (sizeof(__U8_TYPEDEF) != 1) {
printf("Sizeof(__U8__TYPEDEF) is %d should be 1\n",
- sizeof(__U8_TYPEDEF));
+ (int) sizeof(__U8_TYPEDEF));
exit(1);
}
#else
@@ -40,7 +40,7 @@ main(int argc, char **argv)
#ifdef __S8_TYPEDEF
if (sizeof(__S8_TYPEDEF) != 1) {
printf("Sizeof(_S8__TYPEDEF) is %d should be 1\n",
- sizeof(__S8_TYPEDEF));
+ (int) sizeof(__S8_TYPEDEF));
exit(1);
}
#else
@@ -49,7 +49,7 @@ main(int argc, char **argv)
#ifdef __U16_TYPEDEF
if (sizeof(__U16_TYPEDEF) != 2) {
printf("Sizeof(__U16__TYPEDEF) is %d should be 2\n",
- sizeof(__U16_TYPEDEF));
+ (int) sizeof(__U16_TYPEDEF));
exit(1);
}
#else
@@ -58,7 +58,7 @@ main(int argc, char **argv)
#ifdef __S16_TYPEDEF
if (sizeof(__S16_TYPEDEF) != 2) {
printf("Sizeof(__S16__TYPEDEF) is %d should be 2\n",
- sizeof(__S16_TYPEDEF));
+ (int) sizeof(__S16_TYPEDEF));
exit(1);
}
#else
@@ -68,7 +68,7 @@ main(int argc, char **argv)
#ifdef __U32_TYPEDEF
if (sizeof(__U32_TYPEDEF) != 4) {
printf("Sizeof(__U32__TYPEDEF) is %d should be 4\n",
- sizeof(__U32_TYPEDEF));
+ (int) sizeof(__U32_TYPEDEF));
exit(1);
}
#else
@@ -77,7 +77,7 @@ main(int argc, char **argv)
#ifdef __S32_TYPEDEF
if (sizeof(__S32_TYPEDEF) != 4) {
printf("Sizeof(__S32__TYPEDEF) is %d should be 4\n",
- sizeof(__S32_TYPEDEF));
+ (int) sizeof(__S32_TYPEDEF));
exit(1);
}
#else
@@ -87,7 +87,7 @@ main(int argc, char **argv)
#ifdef __U64_TYPEDEF
if (sizeof(__U64_TYPEDEF) != 8) {
printf("Sizeof(__U64__TYPEDEF) is %d should be 8\n",
- sizeof(__U64_TYPEDEF));
+ (int) sizeof(__U64_TYPEDEF));
exit(1);
}
#else
@@ -96,7 +96,7 @@ main(int argc, char **argv)
#ifdef __S64_TYPEDEF
if (sizeof(__S64_TYPEDEF) != 8) {
printf("Sizeof(__S64__TYPEDEF) is %d should be 8\n",
- sizeof(__S64_TYPEDEF));
+ (int) sizeof(__S64_TYPEDEF));
exit(1);
}
#else