Skip to content

Commit 160d7be

Browse files
FreedomBenmptre
authored andcommitted
Fix compile error on GCC 10 (Fedora 32)
GCC 10 complains about the unused variable called "unused" Adding `extern` to the declarations fixes the error. Fixes #301
1 parent 516946b commit 160d7be

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

compat-pledge.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include "config.h"
22

3-
int unused;
3+
extern int unused;
44

55
#ifndef HAVE_PLEDGE
66

compat-reallocarray.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include "config.h"
22

3-
int unused;
3+
extern int unused;
44

55
#ifndef HAVE_REALLOCARRAY
66

compat-strtonum.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include "config.h"
22

3-
int unused;
3+
extern int unused;
44

55
#ifndef HAVE_STRTONUM
66

0 commit comments

Comments
 (0)