Skip to content

Commit a0e054e

Browse files
committed
Fix gcc-12 build failure
Fix #60
1 parent e203bea commit a0e054e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test_sdo_server.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ TEST_F (SdoServerTest, SegmentedTimeout)
197197

198198
TEST_F (SdoServerTest, BadSubIndex)
199199
{
200-
const co_obj_t obj = {0, OTYPE_NULL, 0, NULL, NULL};
200+
static const co_obj_t obj = {0, OTYPE_NULL, 0, NULL, NULL};
201201
uint8_t expected[][8] = {
202202
{0x80, 0x00, 0x10, 0x01, 0x11, 0x00, 0x09, 0x06},
203203
};

0 commit comments

Comments
 (0)