Merge pull request #9031 from shuffle2/msvc-overflow-workaround

msvc: temporary workaround for C4789 false positive
This commit is contained in:
Jordan Woyak 2020-08-16 15:01:14 -05:00 committed by GitHub
commit b5241d1c2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

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