]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
fixed vla warning on linux
authorYann Collet <cyan@fb.com>
Tue, 16 May 2017 01:15:08 +0000 (18:15 -0700)
committerYann Collet <cyan@fb.com>
Tue, 16 May 2017 01:15:08 +0000 (18:15 -0700)
programs/util.h

index 5f437b2b268c441e821b3be8178293b22ce67797..54ae1622754e81e2aca49cf86c7cffb204fe9258 100644 (file)
@@ -609,7 +609,7 @@ UTIL_STATIC int UTIL_countPhysicalCores(void)
 
     /* try to determine if there's hyperthreading */
     {   FILE* const cpuinfo = fopen("/proc/cpuinfo", "r");
-        size_t const BUF_SIZE = 80;
+#define BUF_SIZE 80
         char buff[BUF_SIZE];
 
         int siblings = 0;