From bf0b86774afe9ad77625e1e2723d5789ed408f42 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Tue, 28 Sep 2021 10:33:34 +0300 Subject: [PATCH] fix for the "v.c should be buildable with no warnings" step in `v test-all` --- cmd/tools/vtest-all.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/tools/vtest-all.v b/cmd/tools/vtest-all.v index 52ef6ecd15..ae3ea5b5a0 100644 --- a/cmd/tools/vtest-all.v +++ b/cmd/tools/vtest-all.v @@ -148,7 +148,7 @@ fn get_all_commands() []Command { } $if macos || linux { res << Command{ - line: '$vexe -o v.c cmd/v && cc -I "$vroot/thirdparty/stdatomic/nix" -lpthread v.c && rm -rf a.out' + line: '$vexe -o v.c cmd/v && cc -Werror -I "$vroot/thirdparty/stdatomic/nix" v.c -lpthread && rm -rf a.out' label: 'v.c should be buildable with no warnings...' okmsg: 'v.c can be compiled without warnings. This is good :)' rmfile: 'v.c'