summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2019-09-24 15:51:03 +0700
committerfixeria <axilirator@gmail.com>2019-09-27 03:16:17 +0000
commit14b87b2bbff0d1f60d0709e8febb0d62e0cef653 (patch)
treeb373ada84cae2565c6461129bdb1841c70dddefd /tests
parentdd61cd2ffff5e8a6f56f367972adb2558028efe2 (diff)
gsm29205_test: fix error: missing braces around initializer
Since structure 'osmo_gcr_parsed' does contain arrays, GCC is not happy about the way we initialize it. Let's do it explicitly. Change-Id: Ia814b4a4ed5bec84ff1f69232f7f7d5ca0d19794
Diffstat (limited to 'tests')
-rw-r--r--tests/gsm29205/gsm29205_test.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/gsm29205/gsm29205_test.c b/tests/gsm29205/gsm29205_test.c
index 5add1b18..44c3453c 100644
--- a/tests/gsm29205/gsm29205_test.c
+++ b/tests/gsm29205/gsm29205_test.c
@@ -44,7 +44,13 @@ static void test_gcr()
};
uint8_t len;
struct msgb *msg;
- struct osmo_gcr_parsed p = { 0 }, g = {
+ struct osmo_gcr_parsed p = {
+ .net_len = 0,
+ .net = { 0 },
+ .node = 0x00,
+ .cr = { 0 },
+ };
+ struct osmo_gcr_parsed g = {
.net_len = 3,
.net = { 0x51, 0x52, 0x53 },
.node = 0xDEAD,