From 46ac9ade9bf566323adff6140460e715db5a6968 Mon Sep 17 00:00:00 2001 From: Yann Collet Date: Mon, 15 May 2017 18:15:08 -0700 Subject: [PATCH] fixed vla warning on linux --- programs/util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/programs/util.h b/programs/util.h index 5f437b2b2..54ae16227 100644 --- a/programs/util.h +++ b/programs/util.h @@ -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;