I get the mentioned warning for the return below
The function is used as this
#define ZERO ((BPTR)NULL)
BPTR gcprog=ZERO;
if ((gcprog = findpath("Gui4Cli")) != ((BPTR)-1))
I get the same warning though with with
return (BPTR)-1;
How can i get rid of it?
void* findpath(const char *filename) { if (IoErr() == ERROR_OBJECT_IN_USE) return -1; }