From 267e67d90fe7a4339c0927ae7dd27139bf6498d0 Mon Sep 17 00:00:00 2001 From: Tom van Dijck Date: Sat, 21 Apr 2018 11:17:15 +0200 Subject: [PATCH] Tiny gcc fix from PR #506. --- src/tools/gcc.lua | 2 +- tests/tools/test_gcc.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tools/gcc.lua b/src/tools/gcc.lua index 446b1b45..4aab9da2 100644 --- a/src/tools/gcc.lua +++ b/src/tools/gcc.lua @@ -89,7 +89,7 @@ RDRND = "-mrdrnd", }, warnings = { - Extra = "-Wall -Wextra", + Extra = {"-Wall", "-Wextra"}, High = "-Wall", Off = "-w", }, diff --git a/tests/tools/test_gcc.lua b/tests/tools/test_gcc.lua index 3e495f00..929eb6f0 100644 --- a/tests/tools/test_gcc.lua +++ b/tests/tools/test_gcc.lua @@ -77,7 +77,7 @@ function suite.cflags_onExtraWarnings() warnings "extra" prepare() - test.contains({ "-Wall -Wextra" }, gcc.getcflags(cfg)) + test.contains({ "-Wall", "-Wextra" }, gcc.getcflags(cfg)) end function suite.cflags_onHighWarnings()