From 6f7ac1a20070acc41e24f2af5fd2a3bbe552165e Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Thu, 26 Mar 2015 13:19:28 +0100 Subject: [PATCH] fix gcc version to use --- scripts/genie.lua | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/scripts/genie.lua b/scripts/genie.lua index d7f2c3d08c4..632001027d1 100644 --- a/scripts/genie.lua +++ b/scripts/genie.lua @@ -407,10 +407,12 @@ configuration { } } end else - buildoptions { - "-Wno-unused-result", - } - + if (version >= 40400) then + buildoptions { + "-Wno-unused-result", + } + end + if (version >= 40700) then buildoptions { "-Wno-narrowing",