From: Cédric Schieli Date: Sat, 10 Dec 2022 13:45:10 +0000 (+0100) Subject: Don't confuse GCC with zero-length array X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=abcb0ea676e7b7e822be990aae7df1aa8ff5b990;p=thirdparty%2Ftvheadend.git Don't confuse GCC with zero-length array Fix FTBFS introduced by 7b95ba4cf9113ae8808b3e4a9425010b607dbaca Link: https://tvheadend.org/issues/6173 Link: https://tvheadend.org/issues/6226 References: 7b95ba4cf9113ae8808b3e4a9425010b607dbaca Signed-off-by: Cédric Schieli --- diff --git a/src/htsmsg.h b/src/htsmsg.h index 1be066e72..3403dbf1f 100644 --- a/src/htsmsg.h +++ b/src/htsmsg.h @@ -81,7 +81,7 @@ typedef struct htsmsg_field { #if ENABLE_SLOW_MEMORYINFO size_t hmf_edata_size; #endif - const char _hmf_name[0]; + const char _hmf_name[]; } htsmsg_field_t; #define hmf_s64 u.s64