From: Christophe CURIS <[email protected]>

It is a bad idea to declare the prototype of an external function
in a file as it won't allow the compiler to cross-check it.
---
 WINGs/WINGs/WINGsP.h |    5 +++++
 WINGs/notification.c |    3 ++-
 WINGs/userdefaults.c |    2 --
 WINGs/wapplication.c |    1 -
 WINGs/widgets.c      |    2 --
 5 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/WINGs/WINGs/WINGsP.h b/WINGs/WINGs/WINGsP.h
index 91b4d59..47287ae 100644
--- a/WINGs/WINGs/WINGsP.h
+++ b/WINGs/WINGs/WINGsP.h
@@ -268,6 +268,11 @@ typedef struct W_Screen {
 #define W_DRAWABLE(scr)                (scr)->rcontext->drawable
 
 
+/* ---[ configuration.c ]------------------------------------------------- */
+
+void W_ReadConfigurations(void);
+
+
 /* ---[ drag*.c ]--------------------------------------------------------- */
 
 typedef struct W_DragOperationItem {
diff --git a/WINGs/notification.c b/WINGs/notification.c
index b2c28cb..ada942f 100644
--- a/WINGs/notification.c
+++ b/WINGs/notification.c
@@ -5,6 +5,8 @@
 #include <string.h>
 
 #include "WUtil.h"
+#include "WINGsP.h"
+
 
 typedef struct W_Notification {
        const char *name;
@@ -13,7 +15,6 @@ typedef struct W_Notification {
        int refCount;
 } Notification;
 
-extern void W_FlushASAPNotificationQueue();
 
 const char *WMGetNotificationName(WMNotification * notification)
 {
diff --git a/WINGs/userdefaults.c b/WINGs/userdefaults.c
index 4cfd55a..2947331 100644
--- a/WINGs/userdefaults.c
+++ b/WINGs/userdefaults.c
@@ -37,8 +37,6 @@ char *WMUserDefaultsDidChangeNotification = 
"WMUserDefaultsDidChangeNotification
 
 static void synchronizeUserDefaults(void *foo);
 
-extern char *WMGetApplicationName();
-
 #define DEFAULTS_DIR "/Defaults"
 #ifndef HAVE_INOTIFY
 /* Check defaults database for changes every this many milliseconds */
diff --git a/WINGs/wapplication.c b/WINGs/wapplication.c
index 70a51ab..a0aec2e 100644
--- a/WINGs/wapplication.c
+++ b/WINGs/wapplication.c
@@ -5,7 +5,6 @@
 #include "WINGsP.h"
 #include "wconfig.h"
 
-extern void W_InitNotificationCenter(void);
 
 struct W_Application WMApplication;
 
diff --git a/WINGs/widgets.c b/WINGs/widgets.c
index 5aa3e80..7b9ffe8 100644
--- a/WINGs/widgets.c
+++ b/WINGs/widgets.c
@@ -298,8 +298,6 @@ static char STIPPLE_BITS[] = {
        0xaa, 0x55, 0xaa, 0x55, 0xaa, 0x55, 0xaa, 0x55
 };
 
-extern void W_ReadConfigurations(void);
-
 static int userWidgetCount = 0;
 
 /*****  end data  ******/
-- 
1.7.10.4


-- 
To unsubscribe, send mail to [email protected].

Reply via email to