fix function to be static to avoid strict warnings
Merge pull request #2740 from eileenmcnaughton/strict_warnings

fix function to be static to avoid strict warnings