FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian GCC

 
 
LinkBack Thread Tools
 
Old 12-24-2009, 12:06 AM
Richard Kettlewell
 
Default Bug#526620: closed by Arthur Loiret (reply to aloiret@debian.org) ( 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



--
To UNSUBSCRIBE, email to debian-gcc-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 

Thread Tools




All times are GMT. The time now is 01:31 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org