diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/basic/fixdep.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/basic/fixdep.c b/scripts/basic/fixdep.c index 8912c0f5460b..72c15205bb2b 100644 --- a/scripts/basic/fixdep.c +++ b/scripts/basic/fixdep.c | |||
@@ -373,10 +373,11 @@ void print_deps(void) | |||
373 | void traps(void) | 373 | void traps(void) |
374 | { | 374 | { |
375 | static char test[] __attribute__((aligned(sizeof(int)))) = "CONF"; | 375 | static char test[] __attribute__((aligned(sizeof(int)))) = "CONF"; |
376 | int *p = (int *)test; | ||
376 | 377 | ||
377 | if (*(int *)test != INT_CONF) { | 378 | if (*p != INT_CONF) { |
378 | fprintf(stderr, "fixdep: sizeof(int) != 4 or wrong endianess? %#x\n", | 379 | fprintf(stderr, "fixdep: sizeof(int) != 4 or wrong endianess? %#x\n", |
379 | *(int *)test); | 380 | *p); |
380 | exit(2); | 381 | exit(2); |
381 | } | 382 | } |
382 | } | 383 | } |