Closed hartwork closed 1 year ago
thank you for the submission, I need to verify how that works on older unixes
Okay sure. The OpenGroup POSIX page for signal
is at https://pubs.opengroup.org/onlinepubs/009604499/functions/signal.html . Are we talking POSIX?
PS: My local man 2 signal
says:
STANDARDS POSIX.1-2001, POSIX.1-2008, C99.
If C99 is reality, that would be great.
can you explain what does (void)signum; do here?
@tenox7 that's most portable way to mark a variable as unused that I know. There are other ways but probably less portable, e.g. see https://stackoverflow.com/questions/3599160/how-can-i-suppress-unused-parameter-warnings-in-c . What do you think?
I see. Thank you! Let me look on how it works on other systems.
Previously, e.g. GCC 11 was warning: