From 1a6901488db26262a6b69f80b0e795864e9e8d0a Mon Sep 17 00:00:00 2001 From: Federico Amedeo Izzo Date: Tue, 5 Jan 2021 20:50:26 +0100 Subject: [PATCH] Fix compilation with GCC 10, defaulting to -fno-common. solve issue #52 --- main.c | 2 ++ radio.h | 4 ++-- util.h | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/main.c b/main.c index 9950646..37f1895 100644 --- a/main.c +++ b/main.c @@ -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); diff --git a/radio.h b/radio.h index 0af4baf..d35960f 100644 --- a/radio.h +++ b/radio.h @@ -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; diff --git a/util.h b/util.h index 1052bd1..adedad6 100644 --- a/util.h +++ b/util.h @@ -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.