mirror of
https://github.com/mpv-player/mpv
synced 2025-03-05 13:47:39 +00:00
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 | ||
aclib_template.c | ||
aclib.c | ||
aspect.c | ||
aspect.h | ||
aspecttest.c | ||
fastmemcpy.h | ||
font_load_ft.c | ||
font_load.c | ||
font_load.h | ||
geometry.c | ||
geometry.h | ||
gl_common.c | ||
gl_common.h | ||
gtf.c | ||
gtf.h | ||
img_format.h | ||
jpeg_enc.c | ||
jpeg_enc.h | ||
Makefile | ||
md5sum.c | ||
md5sum.h | ||
mga_common.c | ||
osd_font.h | ||
osd_template.c | ||
osd.c | ||
osd.h | ||
spuenc.c | ||
spuenc.h | ||
sub.c | ||
sub.h | ||
vesa_lvo.c | ||
vesa_lvo.h | ||
video_out_internal.h | ||
video_out.c | ||
video_out.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_fbdev2.c | ||
vo_fbdev.c | ||
vo_ggi.c | ||
vo_gif89a.c | ||
vo_gl2.c | ||
vo_gl.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_zr2.c | ||
vo_zr.c | ||
vosub_vidix.c | ||
vosub_vidix.h | ||
w32_common.c | ||
w32_common.h | ||
wskeys.h | ||
x11_common.c | ||
x11_common.h |