According to exec reference, calls to exec (or stack checking vararg functions in general) requires a (char*)NULL
aka 0 at the end of the parameter list. GCC, however, is complaining about the following code
char cmdFullPath[4096]; //yes this 4096 thing is bad coding practice
...
execl(cmdFullPath, (char*)NULL);
//warning: not enough variable arguments to fit a sentinel
Anyone know what's wrong?