mirror of
https://github.com/facebook/zstd.git
synced 2025-07-30 22:23:13 +03:00
fixed vla warning on linux
This commit is contained in:
@ -609,7 +609,7 @@ UTIL_STATIC int UTIL_countPhysicalCores(void)
|
|||||||
|
|
||||||
/* try to determine if there's hyperthreading */
|
/* try to determine if there's hyperthreading */
|
||||||
{ FILE* const cpuinfo = fopen("/proc/cpuinfo", "r");
|
{ FILE* const cpuinfo = fopen("/proc/cpuinfo", "r");
|
||||||
size_t const BUF_SIZE = 80;
|
#define BUF_SIZE 80
|
||||||
char buff[BUF_SIZE];
|
char buff[BUF_SIZE];
|
||||||
|
|
||||||
int siblings = 0;
|
int siblings = 0;
|
||||||
|
Reference in New Issue
Block a user