From f0aef5de5663f907f29d0325f1b676215fad1052 Mon Sep 17 00:00:00 2001 From: "Ira W. Snyder" Date: Fri, 25 Jan 2008 20:46:32 -0800 Subject: [PATCH] Add missing extern to tilda.h The declaration of the project-global dbus_connection was missing the extern keyword. Also, added the -Wshadow option to the Makefile, just in case it can help find some errors. --- Makefile | 2 +- tilda.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 534a45e..b8f8cc9 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ GCC=gcc # Normal CFLAGS -CFLAGS=-ggdb -O1 -pipe -Wall -DDEBUG=1 +CFLAGS=-ggdb -O1 -pipe -Wshadow -Wall -DDEBUG=1 LDFLAGS=-Wl,-O1 -Wl,--sort-common -Wl,--as-needed #CFLAGS=-ggdb -O1 -pipe -DDEBUG=1 -ffunction-sections -fdata-sections #LDFLAGS=-Wl,--gc-sections -Wl,--print-gc-sections diff --git a/tilda.h b/tilda.h index d634833..4125728 100644 --- a/tilda.h +++ b/tilda.h @@ -13,7 +13,7 @@ #define TILDA_VERSION "0.10.0pre" /* Project-global variables */ -DBusGConnection *dbus_connection; +extern DBusGConnection *dbus_connection; #endif /* TILDA_H */ -- 2.25.1