function declaration to appease compiler

Without this change magit no longer compiles.