Add missing extern to tilda.h
authorIra W. Snyder <devel@irasnyder.com>
Sat, 26 Jan 2008 04:46:32 +0000 (20:46 -0800)
committerIra W. Snyder <devel@irasnyder.com>
Sat, 26 Jan 2008 04:46:32 +0000 (20:46 -0800)
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
tilda.h

index 534a45e..b8f8cc9 100644 (file)
--- 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 (file)
--- 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 */