1
0
forked from drath/libratbag

add static assert

This commit is contained in:
Ilya Guterman
2021-10-20 23:56:01 +03:00
committed by Ilya guterman
parent b71f439ed6
commit 2c83f9c3ef

View File

@@ -126,6 +126,9 @@ union steelseries_message {
uint8_t data[STEELSERIES_REPORT_SIZE];
};
_Static_assert(sizeof(union steelseries_message) == STEELSERIES_REPORT_SIZE,
"Size of union steelseries_message is wrong");
static int
steelseries_test_hidraw(struct ratbag_device *device)
{