From: Bruno Haible Date: Sat, 26 Apr 2025 15:33:06 +0000 (+0200) Subject: crc: Fix -Wmissing-variable-declarations warning. X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=7e5c4efba12a1000efa30e7744428b9794c07e7b;p=gnulib.git crc: Fix -Wmissing-variable-declarations warning. * lib/crc-generate-table.c (crc_table): Make static. --- diff --git a/ChangeLog b/ChangeLog index e887fd2088..c4e4e086a9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2025-04-26 Bruno Haible + + crc: Fix -Wmissing-variable-declarations warning. + * lib/crc-generate-table.c (crc_table): Make static. + 2025-04-26 Bruno Haible stdopen: Silence -Wanalyzer-fd-leak warnings. diff --git a/lib/crc-generate-table.c b/lib/crc-generate-table.c index 86989022bd..6c614374bf 100644 --- a/lib/crc-generate-table.c +++ b/lib/crc-generate-table.c @@ -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)