summaryrefslogtreecommitdiffstats
path: root/tests/abis
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2017-06-18 11:21:25 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2017-06-22 12:22:44 +0200
commit039171a5f8fb02b1a0d94a464c6eaf02f04d0ae8 (patch)
treeb4fcfece915cda36f042decffeb7e9ba7cf73d59 /tests/abis
parentda38203418d80b85ddd793bdfc829b2ee2d3266a (diff)
abis_test.c: Fix warning appearing on some buggy gcc versions
Change-Id: I31d5ffc0cf461d207d6c3d43aa0a25a5448d7000
Diffstat (limited to 'tests/abis')
-rw-r--r--tests/abis/abis_test.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/abis/abis_test.c b/tests/abis/abis_test.c
index a303c919..cb88b012 100644
--- a/tests/abis/abis_test.c
+++ b/tests/abis/abis_test.c
@@ -122,7 +122,8 @@ static inline void print_chk(const char *what, uint8_t len1, uint8_t len2, const
static inline void chk_raw(const char *what, const uint8_t *data, uint16_t len)
{
- struct abis_nm_sw_desc sw = { 0 };
+ /* = { 0 } triggers a warning in some gcc versions due to a bug: gcc issue #53119 */
+ struct abis_nm_sw_desc sw = { {0} };
int res = abis_nm_get_sw_conf(data, len, &sw, 1);
uint16_t xlen = abis_nm_get_sw_desc_len(data, len);
@@ -144,7 +145,8 @@ static inline void chk_descr(struct msgb *msg, const char *f_id, const char *f_v
{
int res;
uint16_t len;
- struct abis_nm_sw_desc sw = { 0 }, put = {
+ /* = { 0 } triggers a warning in some gcc versions due to a bug: gcc issue #53119 */
+ struct abis_nm_sw_desc sw = { {0} }, put = {
.file_id_len = strlen(f_id),
.file_version_len = strlen(f_ver),
};