
Am 03.01.2013 04:23, schrieb Cristian Rodríguez:
function has definition
static FdOrFp do_fopen_or_freopen_or_open(int function, const char *path, ...)
at the end there is a comment
/* (No return statement because all cases in the above switch-statement contain one.) */
that's wrong, a non-void function MUST return something, otherwise the compiler can do anything, as it is undefined behaviour.
No, the comment is right. That piece of code is never reached.
add "return NULL" ;)
Better fix the compiler to not spew unnecessary warnings. -- Stefan Seyfried "If your lighter runs out of fluid or flint and stops making fire, and you can't be bothered to figure out about lighter fluid or flint, that is not Zippo's fault." -- bkw -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org