From e7b44ef4c80907346ec7492a09c45277459924fc Mon Sep 17 00:00:00 2001 From: Michael Biebl Date: Wed, 19 Aug 2020 10:13:49 +0200 Subject: New upstream version 1.26.2 --- libnm-core/nm-setting-wired.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libnm-core/nm-setting-wired.c') diff --git a/libnm-core/nm-setting-wired.c b/libnm-core/nm-setting-wired.c index ab13d88a..8b0f2558 100644 --- a/libnm-core/nm-setting-wired.c +++ b/libnm-core/nm-setting-wired.c @@ -490,6 +490,13 @@ nm_setting_wired_get_s390_option (NMSettingWired *setting, { NMSettingWiredPrivate *priv; + /* with LTO and optimization, the compiler complains that the + * output variables are not initialized. In practice, the function + * only sets the output on success. But make the compiler happy. + */ + NM_SET_OUT (out_key, NULL); + NM_SET_OUT (out_value, NULL); + g_return_val_if_fail (NM_IS_SETTING_WIRED (setting), FALSE); priv = NM_SETTING_WIRED_GET_PRIVATE (setting); -- cgit 1.3.0-6-gf8a5