[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#526620: closed by Arthur Loiret <aloiret@debian.org> (reply to aloiret@debian.org) (Re: Bug#526620: False positive from -Wreturn-type)



reopen 526620
quit

This function's return type is required to be 'void *' because it is
passed to pthread_create(); but it never actually returns.  However,
gcc-4.4 -Wall generates the following warning for it:

playrtp.c: In function ‘queue_thread’:
playrtp.c:327: error: no return statement in function returning non-void

This is expected behavior, your function is not of type void.

It is not expected behavior to anyone who has read the documentation for the option.

> Make your function return the NULL pointer to avoid the warning.

Sorry but this suggestion makes no sense. The function never returns so suggesting it return a null pointer is meaningless.

ttfn/rjk



Reply to: