Microchip C18 compiler has the annoying habit of throwing warning #2058 (call of function without prototype) when you call a function taking no parameters even though the function prototype is declared. The solution is to add the ‘void’ keyword in place of the parameters in the function protoype:
char foo(); // this will cause a warning #2058 ...
char bar(void); // ... but this won't.
Advertisement