[vlc-devel] commit: signals: Return NULL at SigThread end. (Pierre d'Herbemont )

Pierre d'Herbemont pdherbemont at gmail.com
Fri Aug 21 02:20:39 CEST 2009


On Aug 21, 2009, at 1:13 AM, Rafaël Carré wrote:

> On Fri, 21 Aug 2009 01:10:25 +0200 (CEST)
> git at videolan.org (git version control) wrote:
>
>> vlc | branch: master | Pierre d'Herbemont <pdherbemont at free.fr> | Fri
>> Aug 21 01:09:52 2009 +0200|
>> [3c55f6d8bed88ca5635446cbc8ee1e85547c0ac1] | committer: Pierre
>
>> +
>> +    /* Not reached */
>> +    return NULL;
>
> you can declare the function with __attribute__((noreturn)) and remove
> the return

The above solution is the most portable one, I think. Feel free to  
correct it.

Pierre.




More information about the vlc-devel mailing list