[Speex-dev] [PATCH] fix warning in speex_stereo

Alfred E. Heggestad aeh at db.org
Sun Feb 3 04:45:10 PST 2008


This patch fixes a warning when gcc option -Wstrict-prototypes is
enabled:

warning: function declaration isn't a prototype


Patch against svn trunk r14456




Index: include/speex/speex_stereo.h
===================================================================
--- include/speex/speex_stereo.h        (revision 14456)
+++ include/speex/speex_stereo.h        (working copy)
@@ -60,7 +60,7 @@
 #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);
Index: libspeex/stereo.c
===================================================================
--- libspeex/stereo.c   (revision 14456)
+++ libspeex/stereo.c   (working copy)
@@ -72,7 +72,7 @@
 #define COMPATIBILITY_HACK(s) 
 #endif
 
-SpeexStereoState *speex_stereo_state_init()
+SpeexStereoState *speex_stereo_state_init(void)
 {
    SpeexStereoState *stereo = speex_alloc(sizeof(SpeexStereoState));
    speex_stereo_state_reset(stereo);


More information about the Speex-dev mailing list