-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
1 parent
516946b
commit 160d7be
Showing
3 changed files
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#include "config.h" | ||
|
||
int unused; | ||
extern int unused; | ||
|
||
#ifndef HAVE_PLEDGE | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#include "config.h" | ||
|
||
int unused; | ||
extern int unused; | ||
|
||
#ifndef HAVE_REALLOCARRAY | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#include "config.h" | ||
|
||
int unused; | ||
extern int unused; | ||
|
||
#ifndef HAVE_STRTONUM | ||
|
||
|