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:
parent
105d8c68a2
commit
9f39a8aee9
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue