ao-tools: Declare ao_verbose as extern in shared header.
authorKeith Packard <keithp@keithp.com>
Fri, 17 Apr 2020 19:53:47 +0000 (12:53 -0700)
committerKeith Packard <keithp@keithp.com>
Fri, 17 Apr 2020 19:54:56 +0000 (12:54 -0700)
gcc-10 disables 'common' behavior by defaul, so we need to only define
variables in one location now.

Signed-off-by: Keith Packard <keithp@keithp.com>
ao-tools/lib/ao-verbose.h

index d23e720cc8de1e73479579556f4afa1e696c73f8..79fbb0d953ae8e5d461483ef82a1f6c9926f512a 100644 (file)
@@ -22,7 +22,7 @@
 #include <stdint.h>
 #include <stdarg.h>
 
-uint32_t       ao_verbose;
+extern uint32_t        ao_verbose;
 
 #define AO_VERBOSE_EXE 1
 #define AO_VERBOSE_SELF        2