festvox / flite

A small fast portable speech synthesis system
Other
859 stars 186 forks source link

make fails function declaration without a prototype is deprecated in all versions of C #96

Open MarioG-X opened 1 year ago

MarioG-X commented 1 year ago

See https://github.com/signalwire/freeswitch/issues/2017 for detailed description of problem. Basically, flite uses deprecated functions that are now removed and no longer build. If you view https://github.com/festvox/flite/blob/6c9f20dc915b17f5619340069889db0aa007fcdc/include/cst_regex.h#L140C23-L140C23 you can see the line in error.

 making all mod_flite
 CC       mod_flite_la-mod_flite.lo
In file included from mod_flite.c:34:
In file included from /usr/local/include/flite/flite.h:48:
/usr/local/Cellar/flite/2.0.0/include/flite/cst_regex.h:140:20: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
void cst_regex_init();
                   ^
                    void