From 419d403257c16e1daacda90dc57c43f039fd5bdb Mon Sep 17 00:00:00 2001 From: Nigel Tao Date: Sat, 12 Jan 2019 12:37:52 +1100 Subject: [PATCH] Build benchmarks with "-Wall -Werror" --- cmd/wuffs-c/test.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/cmd/wuffs-c/test.go b/cmd/wuffs-c/test.go index 7eb26d55..3e13fc13 100644 --- a/cmd/wuffs-c/test.go +++ b/cmd/wuffs-c/test.go @@ -95,11 +95,8 @@ func doBenchTest1(filename string, bench bool, ccompilers string, focus string, ccArgs := []string(nil) if bench { ccArgs = append(ccArgs, "-O3") - } else { - // TODO: set these flags even if we pass -O3. - ccArgs = append(ccArgs, "-Wall", "-Werror") } - ccArgs = append(ccArgs, "-std=c99", "-o", out, in) + ccArgs = append(ccArgs, "-Wall", "-Werror", "-std=c99", "-o", out, in) if mimic { extra, err := findWuffsMimicCflags(in) if err != nil {