Enable and fix -Wunused-parameter warnings.

This commit is contained in:
Reece H. Dunn
2017-10-05 07:20:44 +01:00
parent dd3df1d0a8
commit 6d9bb7ef17
6 changed files with 20 additions and 0 deletions
+2
View File
@@ -540,6 +540,8 @@ test_espeak_set_voice_by_properties_with_invalid_language()
int
main(int argc, char **argv)
{
(void)argc; // unused parameter
char *progdir = strdup(argv[0]);
char *dir = strrchr(progdir, '/');
if (dir != NULL) *dir = 0;
+3
View File
@@ -876,6 +876,9 @@ test_peekc()
int
main(int argc, char **argv)
{
(void)argc; // unused parameter
(void)argv; // unused parameter
test_unbound_text_decoder();
test_unknown_encoding();
+3
View File
@@ -513,6 +513,9 @@ test_uts51_emoji_keycap_sequence()
int
main(int argc, char **argv)
{
(void)argc; // unused parameter
(void)argv; // unused parameter
assert(espeak_Initialize(AUDIO_OUTPUT_SYNCHRONOUS, 0, NULL, espeakINITIALIZE_DONT_EXIT) == 22050);
test_latin();