aboutsummaryrefslogtreecommitdiffhomepage
path: root/main.c
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2025-12-11 12:28:40 +0100
committerlemon <lsof@mailbox.org>2025-12-11 12:28:55 +0100
commite7671ddf611be4ab62deb1b6e2d0d3862c75dec6 (patch)
treeba32d3a706904b2ca0525d963c4d77152d671528 /main.c
parentf6e34f84e14ac5f272cb31e28e2f023acf702a99 (diff)
driver: add -Werror
Diffstat (limited to 'main.c')
-rw-r--r--main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/main.c b/main.c
index c0016ed..3833d85 100644
--- a/main.c
+++ b/main.c
@@ -202,6 +202,9 @@ optparse(char **args)
}
/* TODO depfiles */
} else if (*arg == 'W') {
+ if (!strcmp(arg+1, "error")) {
+ ccopt.werror = 1;
+ }
/* TODO warning switches */
} else Bad: warn(NULL, "unrecognized option: %'s", arg-1);
}