* lib/crc-generate-table.c: Mark non-exported functions as static
* lib/crc.c: Mark non-exported functions as static
Signed-off-by: Simon Josefsson <simon@josefsson.org>
+2024-10-31 Sam Russell <sam.h.russell@gmail.com>
+
+ crc: Fix compile warnings
+ * lib/crc-generate-table.c: Mark non-exported functions as static
+ * lib/crc.c: Mark non-exported functions as static
+
2024-10-31 Bruno Haible <bruno@clisp.org>
crc: Don't attempt to run a compiled C program when cross-compiling.
*/
unsigned long crc_table[256];
-void
+static void
make_crc_table (int bits)
{
unsigned long c;
}
}
-void
+static void
print_crc_table (FILE * stream, int bits)
{
make_crc_table (bits);
fprintf (stream, " }");
}
-void
+static void
print_header (FILE * stream)
{
fprintf (stream, "/* Slice-by-8 lookup tables */\n");
fprintf (stream, "};\n");
}
-void
+static void
print_copyright_notice (FILE * stream)
{
fprintf (stream, "/* DO NOT EDIT! GENERATED AUTOMATICALLY! */\n");
return crc;
}
-uint32_t
+static uint32_t
crc32_update_no_xor_slice_by_n (uint32_t crc, const char *buf,
size_t num_bytes)
{