diff --git a/xcode_tree.lua b/xcode_tree.lua index bce8a3c..ec19092 100644 --- a/xcode_tree.lua +++ b/xcode_tree.lua @@ -769,22 +769,21 @@ settings.EXECUTABLE_PREFIX = targetprefix local warn = nil - local inheritwarn = true if warnings == 'Extra' then warn = { '-Wall' } elseif warnings == 'Off' then settings.GCC_WARN_INHIBIT_ALL_WARNINGS = true elseif warnings == 'Default' then settings.GCC_WARN_INHIBIT_ALL_WARNINGS = false - inheritwarn = false end if disablewarnings then disablewarnings = #deldisablewarnings > 0 and disablewarnings or newdisablewarnings if #disablewarnings > 0 then - warn = table.translate(disablewarnings, function(warning) + warn = warn or { } + table.insertflat(warn, table.translate(disablewarnings, function(warning) return '-Wno-' .. warning - end) + end)) if #deldisablewarnings == 0 and #warn > 0 then warn = table.join('$(inherited)', warn) end diff --git a/xcode_utils.lua b/xcode_utils.lua index 802ccab..29054e3 100644 --- a/xcode_utils.lua +++ b/xcode_utils.lua @@ -327,10 +327,5 @@ function xcode6.fetchfiltered(cfg, field, terms, ctx) - local value = configset.fetch(cfg._cfgset, field, terms, ctx and ctx._cfgset) - if value and field.tokens then - value = detoken.expand(value, cfg.environ, field, cfg._basedir) - end - - return value + return configset.fetch(cfg._cfgset, field, terms, cfg, ctx and ctx._cfgset) end