From Stephan Huber, fix for OSX build issue
Fixed warning