Remove inappropriate const qualifier from function argument, fixes the warning: