I am trying to compile eSpeak for a related project but getting this error after running the make command.
tr_languages.cpp:201:43: error: narrowing conversion of ‘194’ from
‘int’ to ‘char’ inside { } [-Wnarrowing]
const char string_ordinal[] = {0xc2,0xba,0}; // masculine ordinal
character, UTF-8
^
tr_languages.cpp:201:43: error: narrowing conversion of ‘186’ from
‘int’ to ‘char’ inside { } [-Wnarrowing]
Makefile:102: recipe for target 'tr_languages.o' failed
make: *** [tr_languages.o] Error 1
I searched about it and it appears that here the declaration of
const char string_ordinal[] = {0xc2,0xba,0};
should have been
const signed char string_ordinal[] = {0xc2,0xba,0};
Since the source code is large to change, is there any other way to compile it successfully?
I am using gcc version 6.2.0 20161005 (Ubuntu 6.2.0-5ubuntu12)