Patch by Stefan Huehner / stefan % huehner ! org \
commite7db4ccf1afbb6653ae1aae44b1c96c724361985
authorrathann <rathann@b3059339-0415-0410-9bf9-f77b7e298cf2>
Thu, 9 Feb 2006 14:08:03 +0000 (9 14:08 +0000)
committerrathann <rathann@b3059339-0415-0410-9bf9-f77b7e298cf2>
Thu, 9 Feb 2006 14:08:03 +0000 (9 14:08 +0000)
tree9cc7321a75460de67bd0dae4e940b73439a1374b
parent1f34ddefd2546a37c6efe4fcd9ea3f7627af4a5d
Patch by Stefan Huehner / stefan % huehner ! org \

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
86 files changed:
codec-cfg.c
codec-cfg.h
cpudetect.c
divx4_vbr.c
divx4_vbr.h
edl.c
edl.h
liba52/bitstream.c
libao2/ao_alsa.c
libao2/ao_arts.c
libao2/ao_esd.c
libao2/ao_mpegpes.c
libao2/ao_nas.c
libao2/ao_null.c
libao2/ao_oss.c
libao2/ao_pcm.c
libao2/ao_sdl.c
libao2/audio_out.c
libao2/audio_out.h
libao2/audio_out_internal.h
libfaad2/ps_dec.c
libmpcodecs/dec_audio.c
libmpcodecs/dec_audio.h
libmpcodecs/dec_video.c
libmpcodecs/dec_video.h
libmpcodecs/native/xa_gsm.c
libmpcodecs/native/xa_gsm.h
libmpcodecs/pullup.c
libmpcodecs/pullup.h
libmpcodecs/vf.c
libmpcodecs/vf.h
libmpcodecs/vf_pp7.c
libmpcodecs/vf_scale.c
libmpcodecs/vf_scale.h
libmpcodecs/vf_test.c
libmpdemux/cookies.c
libmpdemux/cue_read.c
libmpdemux/demux_ogg.c
libmpdemux/demux_ty_osd.c
libmpdemux/dvbin.c
libmpdemux/dvbin.h
libmpdemux/http.c
libmpdemux/http.h
libmpdemux/network.c
libmpdemux/network.h
libmpdemux/realrtsp/asmrp.c
libmpdemux/tvi_def.h
libmpdemux/yuv4mpeg.c
libmpeg2/motion_comp_mmx.c
libvo/font_load.h
libvo/font_load_ft.c
libvo/gl_common.c
libvo/gl_common.h
libvo/osd.c
libvo/osd.h
libvo/sub.c
libvo/sub.h
libvo/video_out.c
libvo/video_out.h
libvo/vo_aa.c
libvo/vo_cvidix.c
libvo/vo_gl.c
libvo/vo_gl2.c
libvo/vo_x11.c
libvo/x11_common.c
libvo/x11_common.h
mencoder.c
mp3lib/mp3.h
mp3lib/sr1.c
mp_msg.c
mp_msg.h
mplayer.c
mplayer.h
osdep/getch2.c
osdep/getch2.h
osdep/timer-lx.c
osdep/timer.h
postproc/swscale.c
sub_cc.c
sub_cc.h
vidix/drivers/cyberblade_vid.c
vidix/drivers/mach64_vid.c
vidix/drivers/radeon_vid.c
vidix/drivers/savage_vid.c
vidix/drivers/sis_bridge.c
vidix/drivers/sis_vid.c