$ cat error.c #include <stdlib.h>#include <stdio.h>#include <errno.h>
voidmain(void){ errno = 0; perror("ERROR");}$ gcc error.c && ./a.outERROR: Success
こんなかんじw
$ gcc -Wall -Werror error.cerror.c:6:1: error: return type of ‘main’ is not ‘int’ [-Werror=main] 6 | main(void) | ^~~~cc1: all warnings being treated as errors
こっちはほんとのえらー
Mastodon is the best way to keep up with what's happening.
Follow anyone across the fediverse and see it all in chronological order. No algorithms, ads, or clickbait in sight.