summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2022-07-20 20:32:43 +0200
committerThomas Haller <thaller@redhat.com>2022-07-20 21:07:01 +0200
commit2fb2a83090a781cacae3a0ca997e7a50b36870a4 (patch)
tree95fa796b9a407789fa05568a64efca88c37c1bb8
parentc391162a81fe72e33ca3e58ec4dad55fa9e0c542 (diff)
downloadNetworkManager-2fb2a83090a781cacae3a0ca997e7a50b36870a4.tar.gz
platform: fix compile error in event_seq_check()
Some compiler versions don't like this. Workaround. src/libnm-platform/nm-linux-platform.c: In function event_seq_check: src/libnm-platform/nm-linux-platform.c:7254:1: error: label at end of compound statement out: ^~~ Fixes: 3d4906a3da89 ('platform: add genl socket support for events and genl family')
-rw-r--r--src/libnm-platform/nm-linux-platform.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libnm-platform/nm-linux-platform.c b/src/libnm-platform/nm-linux-platform.c
index cfcc41b410..26831c3718 100644
--- a/src/libnm-platform/nm-linux-platform.c
+++ b/src/libnm-platform/nm-linux-platform.c
@@ -7257,6 +7257,8 @@ out:
if (seq_number != priv->proto_data_x[netlink_protocol].nlh_seq_last_handled)
_LOGt("netlink: recvmsg: unwaited sequence number %u", seq_number);
priv->proto_data_x[netlink_protocol].nlh_seq_last_handled = seq_number;
+#else
+ (void) 0;
#endif
}