1
0
mirror of https://github.com/anope/anope.git synced 2026-06-27 18:46:39 +02:00

Modernize CXXFLAGS on Unix and enable -Werror on CI.

Also clear up warnings that this exposed.
This commit is contained in:
Sadie Powell
2022-01-03 19:17:02 +00:00
parent a31a7f5a6c
commit eb81f22a5b
10 changed files with 23 additions and 29 deletions
+5 -5
View File
@@ -120,12 +120,12 @@ uint64_t Anope::SipHash24(const void *src, unsigned long src_sz, const char key[
uint64_t t = 0; uint8_t *pt = (uint8_t *)&t; uint8_t *m = (uint8_t *)in;
switch (src_sz)
{
case 7: pt[6] = m[6];
case 6: pt[5] = m[5];
case 5: pt[4] = m[4];
case 7: pt[6] = m[6]; [[fallthrough]];
case 6: pt[5] = m[5]; [[fallthrough]];
case 5: pt[4] = m[4]; [[fallthrough]];
case 4: *((uint32_t*)&pt[0]) = *((uint32_t*)&m[0]); break;
case 3: pt[2] = m[2];
case 2: pt[1] = m[1];
case 3: pt[2] = m[2]; [[fallthrough]];
case 2: pt[1] = m[1]; [[fallthrough]];
case 1: pt[0] = m[0];
}
b |= _le64toh(t);