diff options
author | Leandro Pereira <leandro@hardinfo.org> | 2019-07-06 13:22:49 -0700 |
---|---|---|
committer | Leandro Pereira <leandro@hardinfo.org> | 2019-07-06 13:22:49 -0700 |
commit | bff69baa36402436b91cb9066267fee2d9289a92 (patch) | |
tree | 141f5b4de7a38fd9c1feec62f7eb2540f7f9e036 /includes/info.h | |
parent | 3970c1d1a2ef425b281e823b8ee6dc2aaebdc138 (diff) |
No need to have some_member_with_default_value in struct InfoField
Diffstat (limited to 'includes/info.h')
-rw-r--r-- | includes/info.h | 6 |
1 files changed, 1 insertions, 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) {} |