mirror of
https://github.com/libratbag/libratbag.git
synced 2026-11-07 23:23:52 +01:00
add static assert
This commit is contained in:
committed by
Ilya guterman
parent
b71f439ed6
commit
2c83f9c3ef
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user