]> sourceware.org Git - lvm2.git/commitdiff
gcc: make older compilers happier
authorZdenek Kabelac <zkabelac@redhat.com>
Mon, 4 Nov 2024 16:42:34 +0000 (17:42 +0100)
committerZdenek Kabelac <zkabelac@redhat.com>
Tue, 5 Nov 2024 23:04:54 +0000 (00:04 +0100)
Use {{}} for array initializer to quite warning for older gcc.

lib/misc/crc.c

index a5d4565613838d4aada885c4a88f8d704824d460..8d2e2bdac33cb027e5f81363c3ef6205547a20ab 100644 (file)
@@ -78,7 +78,7 @@ static const uint32_t _crctab[] = {
  * TODO: check if it speeds also non X86_64 arch
  */
 
-static unsigned int _crc32_lookup[16][256] = { 0 };
+static unsigned int _crc32_lookup[16][256] = { { 0 } };
 
 static void _initialise_crc32(void)
 {
This page took 0.03498 seconds and 5 git commands to generate.