Warnings removed for ruby trunk

Same as 4d4ff531b8807ee88a3fc46875c7e76f613956fb
Merge pull request #12727 from arunagw/aa-warnings-removed-ruby-trunk

Warnings removed for ruby trunk