Commit f90c28ce authored by Marin Usalj's avatar Marin Usalj

added inhibit warnings per pod. fixes #674

parent 7117139f
......@@ -362,7 +362,10 @@ module Pod
flags << '-DOS_OBJECT_USE_OBJC=0'
end
end
flags = flags * " "
if target_definition.inhibits_warnings_for_pod?(consumer.spec.root.name)
flags << '-w'
end
flags * " "
end
#-----------------------------------------------------------------------#
......
......@@ -254,6 +254,13 @@ module Pod
ios_flags.should.include '-DOS_OBJECT_USE_OBJC'
osx_flags.should.include '-DOS_OBJECT_USE_OBJC'
end
it "adds -w per pod if target definition inhibits warnings for that pod" do
@installer.library.target_definition.stubs(:inhibits_warnings_for_pod?).returns(true)
flags = @installer.send(:compiler_flags_for_consumer, @spec.consumer(:ios))
flags.should.include?('-w')
end
end
end
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment