diff options
author | Patrick Ohly <patrick.ohly@intel.com> | 2017-02-03 09:46:11 +0100 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2017-02-18 11:43:20 -0800 |
commit | 8d0cc9b00459438142d9a72fd85edce633c69da6 (patch) | |
tree | d6bd554c515770b9c78cece6df30efb6f392436e /recipes-devtools/python/python-pycrypto/cross-compiling.patch | |
parent | b70a046ce482627edab0c347259c3a25de277d09 (diff) | |
download | meta-security-8d0cc9b00459438142d9a72fd85edce633c69da6.tar.gz |
swtpm: fix compiler format warning
When building for x86-64, gcc complains:
tpm_ioctl.c:866:9: error: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 2 has type ‘long unsigned int’ [-Werror=format=]
| printf("ptm capability is 0x%llx\n", (uint64_t)devtoh64(is_chardev, cap));
| ^
| cc1: all warnings being treated as errors
Casting to "long long unsigned" matches the format specifier in all
cases, including those where "long long" is larger than 64 bits.
Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'recipes-devtools/python/python-pycrypto/cross-compiling.patch')
0 files changed, 0 insertions, 0 deletions