Skip to content

Commit

Permalink
Fix global variable for gcc10
Browse files Browse the repository at this point in the history
  • Loading branch information
f2404 committed May 15, 2020
1 parent ab3f6a1 commit bfe9765
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/package-query.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ need |= N_TARGET | N_DB; } while (0)
extern char *optarg;
extern int optind;

aq_config config;

static alpm_list_t *targets = NULL;

static void cleanup (int ret)
Expand Down
2 changes: 1 addition & 1 deletion src/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ typedef struct _aq_config
bool rsort;
} aq_config;

aq_config config;
extern aq_config config;

/*
* Target type
Expand Down

0 comments on commit bfe9765

Please sign in to comment.