CI: Add warnings & error on warnings

This commit is contained in:
Jonathan Schwartz
2025-03-28 17:35:26 +00:00
committed by Kyle Schwarz
parent 52e98af9fd
commit 2209e348a3
12 changed files with 93 additions and 92 deletions
+3 -2
View File
@@ -5,6 +5,7 @@
* Author: BJones
*/
#include "icsneo/communication/crc32.h"
#include <stddef.h>
static const unsigned long crc32_table[256] = { 0x00000000, 0x77073096, 0xEE0E612C, 0x990951BA, 0x076DC419, 0x706AF48F, 0xE963A535,
0x9E6495A3, 0x0EDB8832, 0x79DCB8A4, 0xE0D5E91E, 0x97D2D988, 0x09B64C2B, 0x7EB17CBD, 0xE7B82D07, 0x90BF1D91, 0x1DB71064, 0x6AB020F2,
@@ -49,10 +50,10 @@ static unsigned char rev_crc32_table[256];
static void revgen(void)
{
unsigned char k;
size_t k;
for (k = 0; k < 256; k++)
rev_crc32_table[crc32_table[k] >> 24] = k;
rev_crc32_table[crc32_table[k] >> 24] = (uint8_t)k;
}
uint32_t revcrc32(uint32_t crc, const unsigned char* buf, uint32_t len)