From 7e5c4efba12a1000efa30e7744428b9794c07e7b Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sat, 26 Apr 2025 17:33:06 +0200 Subject: [PATCH] crc: Fix -Wmissing-variable-declarations warning. * lib/crc-generate-table.c (crc_table): Make static. --- ChangeLog | 5 +++++ lib/crc-generate-table.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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) -- 2.39.5