From: Ira W. Snyder Date: Sat, 26 Jan 2008 04:46:32 +0000 (-0800) Subject: Add missing extern to tilda.h X-Git-Url: https://www.irasnyder.com/gitweb/?p=tilda-gobject.git;a=commitdiff_plain;h=f0aef5de5663f907f29d0325f1b676215fad1052 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. --- 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 */