diff options
author | Jacob Garber <jgarber1@ualberta.ca> | 2020-11-04 21:49:49 -0700 |
---|---|---|
committer | Nico Huber <nico.h@gmx.de> | 2020-11-08 11:37:04 +0000 |
commit | c98baa7a80ff5bc0a2f8c4d2a5fa24cd8f139979 (patch) | |
tree | 6cf5b0f56e7880ff36299a6c34bc9105233a78e4 /gnat.adc | |
parent | 3190ba863daecf6ac9300f57beb8c7eae74b8c50 (diff) |
libpayload: Add compiler.h to compiler parameters
Headers in libpayload define various structs like so:
struct struct_name { ... } __packed;
However, these header files do not include the compiler.h macro that
defines what __packed is, so they are actually defining a variable named
__packed and *not* declaring a packed struct. This leads to defining the
same variable multiple times, which was caught by GCC 10. Add compiler.h
to the compiler parameters so it is included in all files automatically.
Signed-off-by: Jacob Garber <jgarber1@ualberta.ca>
Change-Id: Ia67182520dc94149e06fe9e03a14b3fc2ee29973
Reviewed-on: https://review.coreboot.org/c/coreboot/+/47153
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'gnat.adc')
0 files changed, 0 insertions, 0 deletions