msvc: temporary workaround for C4789 false positive

This commit is contained in:
Shawn Hoffman 2020-08-16 12:49:00 -07:00
parent 2c5920dccc
commit deb73d0167

View File

@ -89,7 +89,8 @@ struct OutputReportLeds
u8 rumble : 1; u8 rumble : 1;
u8 ack : 1; u8 ack : 1;
u8 : 2; // This field must be named to work around a msvc bug.
u8 _padding : 2;
u8 leds : 4; u8 leds : 4;
}; };
static_assert(sizeof(OutputReportLeds) == 1, "Wrong size"); static_assert(sizeof(OutputReportLeds) == 1, "Wrong size");