diff --git a/lib/rscons/builders/library.rb b/lib/rscons/builders/library.rb index 28d8f32..8d91370 100644 --- a/lib/rscons/builders/library.rb +++ b/lib/rscons/builders/library.rb @@ -12,7 +12,7 @@ module Rscons } end - def run(target, sources, cache, env, vars = {}) + def run(target, sources, cache, env, vars) # build sources to linkable objects objects = env.build_sources(sources, [env['OBJSUFFIX'], env['LIBSUFFIX']].flatten, cache, vars) if objects diff --git a/lib/rscons/builders/object.rb b/lib/rscons/builders/object.rb index 0b7d3da..c03f3fb 100644 --- a/lib/rscons/builders/object.rb +++ b/lib/rscons/builders/object.rb @@ -50,7 +50,7 @@ module Rscons end end - def run(target, sources, cache, env, vars = {}) + def run(target, sources, cache, env, vars) vars = vars.merge({ '_TARGET' => target, '_SOURCES' => sources, diff --git a/lib/rscons/builders/program.rb b/lib/rscons/builders/program.rb index b12bade..850c80e 100644 --- a/lib/rscons/builders/program.rb +++ b/lib/rscons/builders/program.rb @@ -14,7 +14,7 @@ module Rscons } end - def run(target, sources, cache, env, vars = {}) + def run(target, sources, cache, env, vars) # build sources to linkable objects objects = env.build_sources(sources, [env['OBJSUFFIX'], env['LIBSUFFIX']].flatten, cache, vars) return false unless objects diff --git a/lib/rscons/environment.rb b/lib/rscons/environment.rb index 44c69ea..573d390 100644 --- a/lib/rscons/environment.rb +++ b/lib/rscons/environment.rb @@ -228,7 +228,7 @@ module Rscons # @param cache [Cache] The Cache. # @param vars [Hash] Extra variables to pass to the builder. # Return a list of the converted file names. - def build_sources(sources, suffixes, cache, vars = {}) + def build_sources(sources, suffixes, cache, vars) sources.map do |source| if source.has_suffix?(suffixes) source