Fix compilation with GCC 10, defaulting to -fno-common. solve issue #52

This commit is contained in:
Federico Amedeo Izzo 2021-01-05 20:50:26 +01:00
parent 0f5816b63a
commit 1a6901488d
3 changed files with 5 additions and 3 deletions

2
main.c
View File

@ -37,6 +37,8 @@ const char *copyright;
extern char *optarg;
extern int optind;
int trace_flag = 0;
void usage()
{
fprintf(stderr, "DMR Config, Version %s, %s\n", version, copyright);

View File

@ -139,9 +139,9 @@ extern unsigned char radio_mem[];
//
// File descriptor of serial port with programming cable attached.
//
int radio_port;
extern int radio_port;
//
// Read/write progress counter.
//
int radio_progress;
extern int radio_progress;

2
util.h
View File

@ -35,7 +35,7 @@ extern const char *copyright;
//
// Trace data i/o via the serial port.
//
int trace_flag;
extern int trace_flag;
//
// Print data in hex format.