#29 Cosmetic change to headers:(oid) prototype.

closed-duplicate
None
5
2010-03-15
2009-09-12
Anonymous
No

It is 2009. C compilers supports ISO-C style prototype declarations.
When I added -Wimplicit and -Wstrict-prototypes to make file (using gcc) to
track down potential mismatches of prototype and real invocation of functions in my application,
the installed headers from libupnp-1.6.6 produced warnings.

These are strictly not bugs, but pretty much annoying.

Hence, some functions, in header files installed for public access,
which are of the form funcname() { body };
are turned into funcname(void) { body ; } in a few headers.
upnp/inc/upnp.h
upnp/inc/upnpdebug.h
upnp/sample/sample/tvdevice/upnp_tv_device.h

Discussion

  • A patch to delcare a few function argument list as (void).

     
    Attachments
    • assigned_to: nobody --> mroberto
    • status: open --> closed-duplicate