$ cat main.c
int main() {}
$ gcc -c -g -Wall -Wno-long-double main.c
main.c: In function 'main':
main.c:1:1: warning: control reaches end of non-void function
At top level:
cc1: warning: unrecognized command line option "-Wno-long-double"
only when no other warning is present, the warning about the unrecognized option vanishes:
No yet quiet right:
$ cat main.c
int main() {}
$ gcc -c -g -Wall -Wno-long-double main.c
main.c: In function 'main':
main.c:1:1: warning: control reaches end of non-void function
At top level:
cc1: warning: unrecognized command line option "-Wno-long-double"
only when no other warning is present, the warning about the unrecognized option vanishes:
$ cat main.c
int main() {return 0;}
$ gcc -c -g -Wall -Wno-long-double main.c
$