From: Christophe CURIS <christophe.cu...@free.fr> This is the correct way to tell that a function takes no arguments, because an empty parameter list tells the compiler that it is not yet defined, and is tolerated only for compatibility with very old C compilers for whom prototypes were not yet a defined language element. --- WINGs/notification.c | 4 ++-- WINGs/wcolorwell.c | 2 +- WINGs/wtext.c | 4 ++-- WPrefs.app/WPrefs.c | 4 ++-- src/defaults.c | 2 +- src/keybind.h | 2 +- src/moveres.c | 2 +- src/winspector.h | 2 +- util/wmsetbg.c | 6 +++--- util/wxcopy.c | 2 +- util/wxpaste.c | 2 +- wrlib/load.c | 2 +- 12 files changed, 17 insertions(+), 17 deletions(-)
diff --git a/WINGs/notification.c b/WINGs/notification.c index 5d0c802..b2c28cb 100644 --- a/WINGs/notification.c +++ b/WINGs/notification.c @@ -437,7 +437,7 @@ WMEnqueueCoalesceNotification(WMNotificationQueue * queue, } } -void W_FlushASAPNotificationQueue() +void W_FlushASAPNotificationQueue(void) { WMNotificationQueue *queue = notificationQueueList; @@ -451,7 +451,7 @@ void W_FlushASAPNotificationQueue() } } -void W_FlushIdleNotificationQueue() +void W_FlushIdleNotificationQueue(void) { WMNotificationQueue *queue = notificationQueueList; diff --git a/WINGs/wcolorwell.c b/WINGs/wcolorwell.c index 19532d6..ed39619 100644 --- a/WINGs/wcolorwell.c +++ b/WINGs/wcolorwell.c @@ -126,7 +126,7 @@ static void activatedObserver(void *data, WMNotification * notification) */ } -static WMArray *getXdndTypeArray() +static WMArray *getXdndTypeArray(void) { WMArray *types = WMCreateArray(1); WMAddToArray(types, XDND_COLOR_DATA_TYPE); diff --git a/WINGs/wtext.c b/WINGs/wtext.c index 620d57f..e04e717 100644 --- a/WINGs/wtext.c +++ b/WINGs/wtext.c @@ -2911,14 +2911,14 @@ WMArray *getStreamObjects(WMText * tPtr, int sel) #define XDND_TEXT_DATA_TYPE "text/plain" #define XDND_COLOR_DATA_TYPE "application/X-color" -static WMArray *getXdndSourceTypeArray() +static WMArray *getXdndSourceTypeArray(void) { WMArray *types = WMCreateArray(1); WMAddToArray(types, XDND_TEXT_DATA_TYPE); return types; } -static WMArray *getXdndDestinationTypeArray() +static WMArray *getXdndDestinationTypeArray(void) { WMArray *types = WMCreateArray(1); WMAddToArray(types, XDND_COLOR_DATA_TYPE); diff --git a/WPrefs.app/WPrefs.c b/WPrefs.app/WPrefs.c index 48154f8..3acbd39 100644 --- a/WPrefs.app/WPrefs.c +++ b/WPrefs.app/WPrefs.c @@ -102,7 +102,7 @@ static void loadConfigurations(WMScreen * scr, WMWindow * mainw); static void savePanelData(Panel * panel); -static void prepareForClose(); +static void prepareForClose(void); void quit(WMWidget * w, void *data) { @@ -188,7 +188,7 @@ static void undoAll(WMWidget * w, void *data) } } -static void prepareForClose() +static void prepareForClose(void) { int i; diff --git a/src/defaults.c b/src/defaults.c index 2a75b73..8d2fe22 100644 --- a/src/defaults.c +++ b/src/defaults.c @@ -753,7 +753,7 @@ WDefaultEntry optionList[] = { &wPreferences.cycle_ignore_minimized, getBool, NULL, NULL, NULL} }; -static void initDefaults() +static void initDefaults(void) { unsigned int i; WDefaultEntry *entry; diff --git a/src/keybind.h b/src/keybind.h index 4437950..8402b70 100644 --- a/src/keybind.h +++ b/src/keybind.h @@ -122,6 +122,6 @@ typedef struct WShortKey { KeyCode keycode; } WShortKey; -void wKeyboardInitialize(); +void wKeyboardInitialize(void); #endif /* WMKEYBIND_H */ diff --git a/src/moveres.c b/src/moveres.c index e3a63b9..2d3574e 100644 --- a/src/moveres.c +++ b/src/moveres.c @@ -535,7 +535,7 @@ static void drawFrames(WWindow * wwin, WMArray * array, int dx, int dy) } } -static void flushMotion() +static void flushMotion(void) { XEvent ev; diff --git a/src/winspector.h b/src/winspector.h index 7077ea3..a9df71a 100644 --- a/src/winspector.h +++ b/src/winspector.h @@ -30,7 +30,7 @@ void wHideInspectorForWindow(WWindow *wwin); void wUnhideInspectorForWindow(WWindow *wwin); -void wDestroyInspectorPanels(); +void wDestroyInspectorPanels(void); WWindow *wGetWindowOfInspectorForWindow(WWindow *wwin); diff --git a/util/wmsetbg.c b/util/wmsetbg.c index 31a6dd5..95d4016 100644 --- a/util/wmsetbg.c +++ b/util/wmsetbg.c @@ -96,7 +96,7 @@ typedef struct BackgroundTexture { int height; } BackgroundTexture; -void initXinerama() +void initXinerama(void) { xineInfo.screens = NULL; xineInfo.count = 0; @@ -1121,13 +1121,13 @@ char *getFullPixmapPath(const char *file) return wstrdup(file); } -void wAbort() +void wAbort(void) { wfatal("aborting"); exit(1); } -void print_help() +void print_help(void) { printf("Usage: %s [options] [image]\n", __progname); puts("Sets the workspace background to the specified image or a texture and"); diff --git a/util/wxcopy.c b/util/wxcopy.c index 60e790d..6934d5c 100644 --- a/util/wxcopy.c +++ b/util/wxcopy.c @@ -33,7 +33,7 @@ extern char *__progname; -void print_help() +void print_help(void) { printf("Usage: %s [OPTIONS] [FILE]\n", __progname); puts("Copies data from FILE or stdin into X cut buffer."); diff --git a/util/wxpaste.c b/util/wxpaste.c index 4acac0f..7261052 100644 --- a/util/wxpaste.c +++ b/util/wxpaste.c @@ -37,7 +37,7 @@ extern char *__progname; -void print_help() +void print_help(void) { printf("Usage: %s [OPTIONS] [FILE]\n", __progname); puts("Copies data from X selection or cutbuffer to FILE or stdout."); diff --git a/wrlib/load.c b/wrlib/load.c index 554e2b4..5e1bde6 100644 --- a/wrlib/load.c +++ b/wrlib/load.c @@ -97,7 +97,7 @@ char **RSupportedFileFormats(void) return tmp; } -static void init_cache() +static void init_cache(void) { char *tmp; -- 1.7.10.4 -- To unsubscribe, send mail to wmaker-dev-unsubscr...@lists.windowmaker.org.