Fix strict warning for pass-by-reference