diff options
| author | 2025-12-19 17:54:51 +0100 | |
|---|---|---|
| committer | 2025-12-19 17:54:51 +0100 | |
| commit | ae62e89274f20cc0e3d526dfc613038d96820e1f (patch) | |
| tree | b221b6bdd819abf2a102e0fe63ee9440d3aca2a4 /main.c | |
| parent | 6b8b3346d420cfa00de77a4bc564ae3964c50dc5 (diff) | |
driver: -w, update help
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -217,6 +217,9 @@ optparse(char **args) ccopt.werror = 1; } /* TODO warning switches */ + } else if (*arg == 'w') { + ccopt.wnone = 1; + /* TODO warning switches */ } else Bad: warn(NULL, "unrecognized option: %'s", arg-1); } @@ -583,9 +586,11 @@ prihelp(void) " -llib \tLink with library\n" " -fpie \tEmit code for position independent executable\n" " -fpic \tEmit position independent code\n" - " -O0 \tTurn off optimizations\n" - " -O1 \tTurn on more optimizations\n" + " -O[0|1..] \tSet optimization level\n" " -x[c|o] \tSpecify type of next input file (C, object)\n" + " -W[...] \tTurn on warnings (stub)\n" + " -Werror \tTurn warnings into errors\n" + " -w \tSuppress warnings\n" ); } |