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>
This commit is contained in:
Jacob Garber 2019-10-02 14:44:28 -06:00 committed by Patrick Georgi
parent 94e5ceea8c
commit bd62472f76
1 changed files with 4 additions and 1 deletions

View File

@ -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))