• Stefan Huehner's avatar
    Patch by Stefan Huehner / stefan % huehner ! org \ · 9b2283cc
    Stefan Huehner authored
    patch replaces '()' for the correct '(void)' in function
    declarations/prototypes which have no parameters. The '()' syntax tell
    thats there is a variable list of arguments, so that the compiler cannot
    check this. The extra CFLAG '-Wstrict-declarations' shows those cases.
    
    Comments about a similar patch applied to ffmpeg:
    
    That in C++ these mean the same, but in ANSI C the semantics are
    different; function() is an (obsolete) K&R C style forward declaration,
    it basically means that the function can have any number and any types
    of parameters, effectively completely preventing the compiler from doing
    any sort of type checking. -- Erik Slagter
    
    Defining functions with unspecified arguments is allowed but bad.
    With arguments unspecified the compiler can't report an error/warning
    if the function is called with incorrect arguments. -- Måns Rullgård
    
    Originally committed as revision 17567 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
    9b2283cc
Name
Last commit
Last update
doc Loading commit data...
libavcodec Loading commit data...
libavformat Loading commit data...
libavutil Loading commit data...
postproc Loading commit data...
tests Loading commit data...
vhook Loading commit data...
.cvsignore Loading commit data...
COPYING Loading commit data...
CREDITS Loading commit data...
Changelog Loading commit data...
Doxyfile Loading commit data...
INSTALL Loading commit data...
MAINTAINERS Loading commit data...
Makefile Loading commit data...
README Loading commit data...
berrno.h Loading commit data...
build_avopt Loading commit data...
clean-diff Loading commit data...
cmdutils.c Loading commit data...
cmdutils.h Loading commit data...
configure Loading commit data...
cws2fws.c Loading commit data...
ffinstall.nsi Loading commit data...
ffmpeg.c Loading commit data...
ffplay.c Loading commit data...
ffserver.c Loading commit data...
ffserver.h Loading commit data...
output_example.c Loading commit data...
pktdumper.c Loading commit data...
qt-faststart.c Loading commit data...
unwrap-diff Loading commit data...
xvmc_render.h Loading commit data...