Martin Storsjo
2017-Nov-03 10:11 UTC
[Speex-dev] [PATCH] Add a (void) parameter list to a function declaration
This fixes warnings in calling code about "this function declaration
is not a prototype".
---
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)
Tristan Matthews
2017-Nov-03 14:51 UTC
[Speex-dev] [PATCH] Add a (void) parameter list to a function declaration
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