From 2ce48f0678b4fc64283095e96f2635864e1feaac Mon Sep 17 00:00:00 2001 From: Etienne Guesnet Date: Mon, 26 Oct 2020 10:08:14 +0100 Subject: Fix build on GCC 5 --- extra/perror.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'extra/perror.c') diff --git a/extra/perror.c b/extra/perror.c index f31314a08a3..662f4a16f4d 100644 --- a/extra/perror.c +++ b/extra/perror.c @@ -263,6 +263,7 @@ int main(int argc,char *argv[]) const char *msg; const char *name; char *unknown_error = 0; + char unknow_aix[30]; #if defined(_WIN32) my_bool skip_win_message= 0; #endif @@ -321,7 +322,6 @@ int main(int argc,char *argv[]) msg = strerror(code); // On AIX, unknow error return " Error occurred." - char unknow_aix[30]; snprintf(unknow_aix, sizeof(unknow_aix), " Error %3d occurred.", code); /* -- cgit v1.2.1