diff options
author | Thomas Haller <thaller@redhat.com> | 2018-02-26 14:21:34 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2018-02-26 14:42:09 +0100 |
commit | 65049f6736d65a702b6f9b8b73a79f1918ec1b4c (patch) | |
tree | 8c0c735280d9a07b15496618f696084bce97e9e2 | |
parent | 817fce917bb98c09977e8ca0cc87fc0612faeeb3 (diff) | |
download | NetworkManager-65049f6736d65a702b6f9b8b73a79f1918ec1b4c.tar.gz |
libnm/tests: fix compilation of test-general
../libnm/tests/test-general.c: In function ‘test_fixup_vendor_string’:
../libnm/tests/test-general.c:70:3: error: initializer element is not constant
T_DATA ("3Com", "3Com"),
^
../libnm/tests/test-general.c:70:3: error: (near initialization for ‘data[0]’)
../libnm/tests/test-general.c: In function ‘test_fixup_product_string’:
../libnm/tests/test-general.c:365:3: error: initializer element is not constant
T_DATA ("10/100BaseTX [RTL81xx]", "RTL81xx"),
...
Fixes: 817fce917bb98c09977e8ca0cc87fc0612faeeb3
-rw-r--r-- | libnm/tests/test-general.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libnm/tests/test-general.c b/libnm/tests/test-general.c index 2c4ce2722a..5959a4e62f 100644 --- a/libnm/tests/test-general.c +++ b/libnm/tests/test-general.c @@ -57,11 +57,11 @@ _test_fixup_string (const TestFixupData *data, } #define T_DATA(_desc, _expected) \ - ((TestFixupData) { \ + { \ .desc = _desc, \ .expected = _expected, \ .line = __LINE__, \ - }) + } static void test_fixup_vendor_string (void) |