clean up the warnings when GC_PROFILE is on
Merge pull request #1450 from Fleurer/cleanup-warninigs

clean up the warnings when GC_PROFILE is set