build: fix fixdep warning.

The data type returned by sizeof in windows is different to Linux.
This commit cast the value to the largest type to avoid a warning
when compiling on MinGW and Linux.

Change-Id: I4ce50f0b62dd614b1d180adea5aa2679032643e0
Signed-off-by: Louise Mendoza <yonattan.a.louise.mendoza@intel.com>
Signed-off-by: Juan Manuel Cruz <juan.m.cruz.alcaraz@linux.intel.com>
This commit is contained in:
Louise Mendoza 2015-12-30 15:55:43 -06:00 committed by Anas Nashif
parent 105d8c68a2
commit 9f39a8aee9
1 changed files with 2 additions and 2 deletions

View File

@ -502,8 +502,8 @@ static void traps(void)
int *p = (int *)test;
if (*p != INT_CONF) {
fprintf(stderr, "fixdep: sizeof(int) : %zu\n",
sizeof(int));
fprintf(stderr, "fixdep: sizeof(int) : %lu\n",
(unsigned long)sizeof(int));
fprintf(stderr, "fixdep: sizeof(int) != 4 or wrong endianness? %#x"
" vs %#x\n", *p, INT_CONF);