Skip to content

Commit

Permalink
fixed vla warning on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyan4973 committed May 16, 2017
1 parent 133f0ae commit 46ac9ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion programs/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 46ac9ad

Please sign in to comment.