#30 Declare a few functions to have proper (void) argument list.

closed-accepted
None
5
2010-03-15
2009-09-12
zephyrus
No

In a publicly installed headers, a few functions are declared without any arguments at all, a la "()".
When I used gcc's -Wimplict and -Wstrict-prototypes to check for the mismatch of
function prototype declarations and their usage in my own program,
some headers from libupnp-1.6.6 produced warnings.

They are not strictly bugs, but pretty much annoying. This is 2009, and almost all the important compilers
understand ISO-C.

So the offending functions are declared as "(void") to show that they have no arguments at all.
upnp/inc/upnp.h
upnp/inc/upnpdebug.h
upnp/sample/inc/tvdevice/upnp_tv_device.h

Discussion

  • zephyrus
    zephyrus
    2009-09-12

    Declare a few functions with "(void") instead of "()".

     
    Attachments
    • assigned_to: nobody --> mroberto
    • status: open --> closed-accepted
     
  • Committed.