POSIX-UEFI helllo world

Programming, for all ages and all languages.
Post Reply
PeterX
Member
Member
Posts: 590
Joined: Fri Nov 22, 2019 5:46 am

POSIX-UEFI helllo world

Post 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
foliagecanine
Member
Member
Posts: 148
Joined: Sun Aug 23, 2020 4:35 pm

Re: POSIX-UEFI helllo world

Post 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.
My OS: TritiumOS
https://github.com/foliagecanine/tritium-os
void warranty(laptop_t laptop) { if (laptop.broken) return laptop; }
I don't get it: Why's the warranty void?
Post Reply