Remove const qualifier from function argument to eliminate the warning