]> Savannah Git Hosting - gnulib.git/commitdiff
crc: Fix -Wmissing-variable-declarations warning.
authorBruno Haible <bruno@clisp.org>
Sat, 26 Apr 2025 15:33:06 +0000 (17:33 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 26 Apr 2025 15:33:06 +0000 (17:33 +0200)
* lib/crc-generate-table.c (crc_table): Make static.

ChangeLog
lib/crc-generate-table.c

index e887fd20883683d69460f5ab1b2b31521cb8c7bd..c4e4e086a91275d601a4df388053c3c5b98df2b1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2025-04-26  Bruno Haible  <bruno@clisp.org>
+
+       crc: Fix -Wmissing-variable-declarations warning.
+       * lib/crc-generate-table.c (crc_table): Make static.
+
 2025-04-26  Bruno Haible  <bruno@clisp.org>
 
        stdopen: Silence -Wanalyzer-fd-leak warnings.
index 86989022bdb7bd1f3a3052a066d892d98abac368..6c614374bff58d271e15e8522d14748d22ed1799 100644 (file)
@@ -38,7 +38,7 @@
  * the slice-by-8 algorithm which uses 8 tables from in 8-bit
  * increments from make_crc_table(8) to make_crc_table(64)
  */
-unsigned long crc_table[256];
+static unsigned long crc_table[256];
 
 static void
 make_crc_table (int bits)