1
0
mirror of https://github.com/facebook/zstd.git synced 2025-07-06 15:45:37 +02:00

[contrib][linux-kernel] Add standard warnings and -Werror to CI

Test the kernel build with the standard warnings enabled so that we
don't miss issues like fixed in PR #2802.

Stacked on top of PR #2802 so CI passes, so it includes the fix. But, I
won't merge until it is merged, so @solbjorn gets the credit for the
fix.
This commit is contained in:
Nick Terrell
2021-09-24 14:46:45 -07:00
parent 32a8443b5c
commit b10085d97d
6 changed files with 57 additions and 39 deletions

View File

@ -20,6 +20,7 @@ static unsigned _isLittleEndian(void)
{
const union { uint32_t u; uint8_t c[4]; } one = { 1 };
assert(_IS_LITTLE_ENDIAN == one.c[0]);
(void)one;
return _IS_LITTLE_ENDIAN;
}