Jacob Garber has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/38292 )
Change subject: coreinfo/coreinfo.c: Correct main function signature ......................................................................
coreinfo/coreinfo.c: Correct main function signature
libpayload passes argc and argv to main(), and ignoring these arguments causes a compile time error when using LTO.
Change-Id: I5d2b30158ebabe1d1534a9684874018483ad769b Signed-off-by: Jacob Garber jgarber1@ualberta.ca --- M payloads/coreinfo/coreinfo.c 1 file changed, 4 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/92/38292/1
diff --git a/payloads/coreinfo/coreinfo.c b/payloads/coreinfo/coreinfo.c index 53985b2..b1017f0 100644 --- a/payloads/coreinfo/coreinfo.c +++ b/payloads/coreinfo/coreinfo.c @@ -290,8 +290,11 @@ } }
-int main(void) +int main(int argc, char **argv) { + (void)argc; + (void)argv; + int j;
if (CONFIG(LP_USB))