[Speex-dev] [PATCH] Add a (void) parameter list to a function declaration

Tristan Matthews tmatth at videolan.org
Fri Nov 3 14:51:25 UTC 2017


On Fri, Nov 3, 2017 at 6:11 AM, Martin Storsjo <martin at martin.st> wrote:
> This fixes warnings in calling code about "this function declaration
> is not a prototype".

Applied, thanks.

Best,
Tristan

> ---
>  include/speex/speex_stereo.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/include/speex/speex_stereo.h b/include/speex/speex_stereo.h
> index 5844f5a1..12af2bbf 100644
> --- a/include/speex/speex_stereo.h
> +++ b/include/speex/speex_stereo.h
> @@ -61,7 +61,7 @@ typedef struct SpeexStereoState {
>  #define SPEEX_STEREO_STATE_INIT {1,.5,1,1,0,0}
>
>  /** Initialise/create a stereo stereo state */
> -SpeexStereoState *speex_stereo_state_init();
> +SpeexStereoState *speex_stereo_state_init(void);
>
>  /** Reset/re-initialise an already allocated stereo state */
>  void speex_stereo_state_reset(SpeexStereoState *stereo);
> --
> 2.13.6 (Apple Git-96)
>
> _______________________________________________
> Speex-dev mailing list
> Speex-dev at xiph.org
> http://lists.xiph.org/mailman/listinfo/speex-dev


More information about the Speex-dev mailing list