diff options
| author | Michael Biebl <biebl@debian.org> | 2020-08-19 10:14:39 +0200 |
|---|---|---|
| committer | Michael Biebl <biebl@debian.org> | 2020-08-19 10:14:39 +0200 |
| commit | c61fd724fffbf1225fdd233a8e450d9a1ddcc849 (patch) | |
| tree | 43e0feb9d3cf8842022ed94b164324c0603855fc /libnm-core/nm-setting-bridge.c | |
| parent | f86436e83639986f20fb44663edcccf36c3c150c (diff) | |
| parent | e7b44ef4c80907346ec7492a09c45277459924fc (diff) | |
Update upstream source from tag 'upstream/1.26.2'
Update to upstream version '1.26.2' with Debian dir ba5e61f5f737f4e42f743638f9a83bd5cd708a3c
Diffstat (limited to 'libnm-core/nm-setting-bridge.c')
| -rw-r--r-- | libnm-core/nm-setting-bridge.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libnm-core/nm-setting-bridge.c b/libnm-core/nm-setting-bridge.c index 2ead2739..5082547e 100644 --- a/libnm-core/nm-setting-bridge.c +++ b/libnm-core/nm-setting-bridge.c @@ -268,6 +268,13 @@ nm_bridge_vlan_get_vid_range (const NMBridgeVlan *vlan, guint16 *vid_start, guint16 *vid_end) { + /* 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 (vid_start, 0); + NM_SET_OUT (vid_end, 0); + g_return_val_if_fail (NM_IS_BRIDGE_VLAN (vlan, TRUE), 0); NM_SET_OUT (vid_start, vlan->vid_start); |