Skip to content
Snippets Groups Projects
Commit 51098eaf authored by Don Gagne's avatar Don Gagne
Browse files

Fix GCC compiler warning

parent 49b9228e
No related branches found
No related tags found
No related merge requests found
......@@ -97,7 +97,11 @@ GAudioOutput::GAudioOutput(QObject *parent) : QObject(parent),
#if defined Q_OS_LINUX && defined QGC_SPEECH_ENABLED
espeak_Initialize(AUDIO_OUTPUT_PLAYBACK, 500, NULL, 0); // initialize for playback with 500ms buffer and no options (see speak_lib.h)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wmissing-field-initializers"
// Even though the following is legal, GCC still complains about it
espeak_VOICE espeak_voice = {};
#pragma GCC diagnostic pop
espeak_voice.languages = "en-uk"; // Default to British English
espeak_voice.name = "klatt"; // espeak voice name
espeak_voice.gender = 2; // Female
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment