fixed vla warning on linux

This commit is contained in:
Yann Collet
2017-05-15 18:15:08 -07:00
parent 133f0aee54
commit 46ac9ade9b
+1 -1
View 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;