mirror of https://github.com/mpv-player/mpv
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 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17567 b3059339-0415-0410-9bf9-f77b7e298cf2 |
||
---|---|---|
.. | ||
.cvsignore | ||
Makefile | ||
aclib.c | ||
aclib_template.c | ||
aspect.c | ||
aspect.h | ||
aspecttest.c | ||
fastmemcpy.h | ||
font_load.c | ||
font_load.h | ||
font_load_ft.c | ||
geometry.c | ||
geometry.h | ||
gl_common.c | ||
gl_common.h | ||
gtf.c | ||
gtf.h | ||
img_format.h | ||
jpeg_enc.c | ||
jpeg_enc.h | ||
md5sum.c | ||
md5sum.h | ||
mga_common.c | ||
osd.c | ||
osd.h | ||
osd_font.h | ||
osd_template.c | ||
spuenc.c | ||
spuenc.h | ||
sub.c | ||
sub.h | ||
vesa_lvo.c | ||
vesa_lvo.h | ||
video_out.c | ||
video_out.h | ||
video_out_internal.h | ||
videodev_mjpeg.h | ||
vo_3dfx.c | ||
vo_aa.c | ||
vo_bl.c | ||
vo_caca.c | ||
vo_cvidix.c | ||
vo_dfbmga.c | ||
vo_dga.c | ||
vo_directfb2.c | ||
vo_directx.c | ||
vo_dxr2.c | ||
vo_dxr3.c | ||
vo_fbdev.c | ||
vo_fbdev2.c | ||
vo_ggi.c | ||
vo_gif89a.c | ||
vo_gl.c | ||
vo_gl2.c | ||
vo_jpeg.c | ||
vo_macosx.h | ||
vo_macosx.m | ||
vo_md5sum.c | ||
vo_mga.c | ||
vo_mpegpes.c | ||
vo_null.c | ||
vo_png.c | ||
vo_pnm.c | ||
vo_quartz.c | ||
vo_quartz.h | ||
vo_sdl.c | ||
vo_svga.c | ||
vo_syncfb.c | ||
vo_tdfx_vid.c | ||
vo_tdfxfb.c | ||
vo_tga.c | ||
vo_vesa.c | ||
vo_winvidix.c | ||
vo_x11.c | ||
vo_xmga.c | ||
vo_xover.c | ||
vo_xv.c | ||
vo_xvidix.c | ||
vo_xvmc.c | ||
vo_yuv4mpeg.c | ||
vo_zr.c | ||
vo_zr2.c | ||
vosub_vidix.c | ||
vosub_vidix.h | ||
w32_common.c | ||
w32_common.h | ||
wskeys.h | ||
x11_common.c | ||
x11_common.h |