From bff69baa36402436b91cb9066267fee2d9289a92 Mon Sep 17 00:00:00 2001 From: Leandro Pereira Date: Sat, 6 Jul 2019 13:22:49 -0700 Subject: No need to have some_member_with_default_value in struct InfoField --- includes/info.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/includes/info.h b/includes/info.h index f85ab39c..63346135 100644 --- a/includes/info.h +++ b/includes/info.h @@ -67,7 +67,6 @@ struct InfoField { gboolean report_details; /* show moreinfo() in report (flag:!) */ gboolean free_value_on_flatten; - int some_member_with_default_value; }; struct Info *info_new(void); @@ -81,10 +80,7 @@ void info_group_add_fieldsv(struct InfoGroup *group, va_list ap); struct InfoField info_field_printf(const gchar *name, const gchar *format, ...) __attribute__((format(printf, 2, 3))); -#define info_field_full(...) (struct InfoField) { \ - .some_member_with_default_value = 3, \ - __VA_ARGS__ \ -} +#define info_field_full(...) (struct InfoField) { __VA_ARGS__ } #define info_field(n, v) info_field_full(.name = (n), .value = (v)) #define info_field_update(n, ui) info_field_full(.name = (n), .value = "...", .update_interval = (ui)) #define info_field_last() (struct InfoField) {} -- cgit v1.2.3