fixed compiler warning on inline function declaration