diff options
author | Jacob Garber <jgarber1@ualberta.ca> | 2019-10-02 14:44:28 -0600 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2020-02-04 16:11:58 +0000 |
commit | bd62472f76caa691b79084c060955b633fa4fe02 (patch) | |
tree | 54962af7fa58647d0883df9fab954fc64dd0ac2a /payloads/coreinfo | |
parent | 94e5ceea8c40e8fd17a9d07ce5bf577e61e3fd33 (diff) | |
download | coreboot-bd62472f76caa691b79084c060955b633fa4fe02.tar.xz |
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>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/38292
Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'payloads/coreinfo')
-rw-r--r-- | payloads/coreinfo/coreinfo.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/payloads/coreinfo/coreinfo.c b/payloads/coreinfo/coreinfo.c index 53985b293a..b1017f079c 100644 --- a/payloads/coreinfo/coreinfo.c +++ b/payloads/coreinfo/coreinfo.c @@ -290,8 +290,11 @@ static void loop(void) } } -int main(void) +int main(int argc, char **argv) { + (void)argc; + (void)argv; + int j; if (CONFIG(LP_USB)) |