[vlc-devel] No return value in non-void function

Dominique Leuenberger dominique-ffmpeg-devel at leuenberger.net
Tue Mar 10 11:55:17 CET 2009


Hi,

The latest git master falls through my lint checks with:
I: Program returns random data in a function
E: vlc-beta no-return-in-nonvoid-function dialogs/external.cpp:57

The code in question is:

int QVLCVariable::callback (vlc_object_t *object, const char *,
                             vlc_value_t, vlc_value_t cur, void *data)
{
     QVLCVariable *self = (QVLCVariable *)data;
     emit self->pointerChanged (object, cur.p_address);
}

And indeed: no return value given :)
On the other hand I'm not sure neither what is expected as a return  
value (if at all one should be given).

Somebody dare to look at that?

Dominique



More information about the vlc-devel mailing list