From 2cd30cbe6ff0abe1e727aed3fedb4404c36fc18c Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Wed, 7 Aug 2024 08:46:29 +0200 Subject: [PATCH] COMMON_OPTS_INIT: do not use designed initializers Inside C++, the designed initializers are supported from version c++20 but not supported eg. with GCC 9.4, that is on Ubuntu 20.04. --- src/host.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/host.h b/src/host.h index 6697def91..3a8224035 100644 --- a/src/host.h +++ b/src/host.h @@ -178,9 +178,9 @@ struct common_opts { struct exporter *exporter; time_ns_t start_time; #define COMMON_OPTS_INIT \ - .encryption = "", .mcast_if = "", .mtu = 1500, .ttl = -1, \ - .force_ip_version = 0, .exporter = NULL, \ - .start_time = get_time_in_ns(), + /* .encryption = */ "", /* .mcast_if = */ "", /* .mtu = */ 1500, \ + /* .ttl = */ -1, /* .force_ip_version = */ 0, /* .exporter = */ NULL, \ + /* .start_time = */ get_time_in_ns(), }; #ifdef __cplusplus