Skip to content

Commit a64c7db

Browse files
committed
Disable warnings properly on gcc
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
1 parent 4d10125 commit a64c7db

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tools/bin/mtest

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,10 @@ def toolchain(target, exit_on_failure=True):
236236
c_flags += " -Os"
237237
if "-std" not in target.cflags: c_flags += " -std=c99"
238238
if args.no_warnings:
239-
c_flags += " -Wno-everything"
239+
if "clang" in target.compiler:
240+
c_flags += " -Wno-everything"
241+
else:
242+
c_flags += " -Wno-all -Wno-extra"
240243
else:
241244
c_flags += " " + WARNING_FLAGS.get(target.compiler, "")
242245
if target.cflags:

0 commit comments

Comments
 (0)