Page 1 of 1

POSIX-UEFI helllo world

Posted: Sat Feb 20, 2021 11:52 am
by PeterX
I thought this would be inapproprieate in the project's announcement thread, so here it is:

In POSIX-UEFI's hello world
https://gitlab.com/bztsrc/posix-uefi/-/ ... lloworld.c
there are two lines:

Code: Select all

    (void)argc;
    (void)argv;
I don't understand what that is. Are these type conversions? Are these function pointers?

Greetings
Peter

Re: POSIX-UEFI helllo world

Posted: Sat Feb 20, 2021 12:16 pm
by foliagecanine
PeterX wrote:there are two lines:

Code: Select all

    (void)argc;
    (void)argv;
I don't understand what that is. Are these type conversions? Are these function pointers?
Those simply make the compiler not give a warning about unused parameters. It would run fine even without them.