Fix compiler warning about inline function