Commit faaba2c9 authored by Tristan Matthews's avatar Tristan Matthews

client: silence false-postive warnings

These structs are being default initialized.

Change-Id: I2e38bf62bc97d6140f49a4a0184d900d0e5f0c8a
Refs: #48032
parent 58242adb
......@@ -209,18 +209,18 @@ int DBusClient::initLibrary(int sflphFlags)
#endif // SFL_VIDEO
// All event handlers
sflph_ev_handlers evHandlers = {};
evHandlers.call_ev_handlers = callEvHandlers;
evHandlers.config_ev_handlers = configEvHandlers;
sflph_ev_handlers evHandlers = {
.call_ev_handlers = callEvHandlers,
.config_ev_handlers = configEvHandlers,
#ifdef SFL_PRESENCE
evHandlers.pres_ev_handlers = presEvHandlers;
.pres_ev_handlers = presEvHandlers,
#endif // SFL_PRESENCE
#ifdef SFL_VIDEO
evHandlers.video_ev_handlers = videoEvHandlers;
.video_ev_handlers = videoEvHandlers
#endif // SFL_VIDEO
};
// Initialize now
return sflph_init(&evHandlers, static_cast<sflph_init_flag>(sflphFlags));
......
......@@ -161,8 +161,10 @@ class CallManager
#endif
private:
#pragma GCC diagnostic ignored "-Wmissing-field-initializers"
// Event handlers; needed by the library API
sflph_call_ev_handlers evHandlers_{};
#pragma GCC diagnostic warning "-Wmissing-field-initializers"
};
#endif//CALLMANAGER_H
......@@ -160,8 +160,10 @@ class ConfigurationManager
std::vector< int32_t > getHardwareAudioFormat();
private:
#pragma GCC diagnostic ignored "-Wmissing-field-initializers"
// Event handlers; needed by the library API
sflph_config_ev_handlers evHandlers_{};
#pragma GCC diagnostic warning "-Wmissing-field-initializers"
};
#endif //CONFIGURATIONMANAGER_H
......@@ -64,8 +64,10 @@ class PresenceManager
const bool& state);
private:
#pragma GCC diagnostic ignored "-Wmissing-field-initializers"
// Event handlers; needed by the library API
struct sflph_pres_ev_handlers evHandlers_{};
sflph_pres_ev_handlers evHandlers_{};
#pragma GCC diagnostic warning "-Wmissing-field-initializers"
};
#endif //PRESENCEINT_H
......@@ -110,7 +110,9 @@ class VideoManager
void stoppedDecoding(const std::string &id, const std::string& shmPath, bool isMixer);
private:
#pragma GCC diagnostic ignored "-Wmissing-field-initializers"
sflph_video_ev_handlers evHandlers_{};
#pragma GCC diagnostic warning "-Wmissing-field-initializers"
};
#endif // VIDEOMANAGER_H_
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment