mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-18 12:00:31 +01:00
Added explicit 'void' to function that takes no argument
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.
This commit is contained in:
committed by
Carlos R. Mafra
parent
a3281b1e89
commit
a622197faa
@@ -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;
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -122,6 +122,6 @@ typedef struct WShortKey {
|
||||
KeyCode keycode;
|
||||
} WShortKey;
|
||||
|
||||
void wKeyboardInitialize();
|
||||
void wKeyboardInitialize(void);
|
||||
|
||||
#endif /* WMKEYBIND_H */
|
||||
|
||||
@@ -535,7 +535,7 @@ static void drawFrames(WWindow * wwin, WMArray * array, int dx, int dy)
|
||||
}
|
||||
}
|
||||
|
||||
static void flushMotion()
|
||||
static void flushMotion(void)
|
||||
{
|
||||
XEvent ev;
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ void wHideInspectorForWindow(WWindow *wwin);
|
||||
|
||||
void wUnhideInspectorForWindow(WWindow *wwin);
|
||||
|
||||
void wDestroyInspectorPanels();
|
||||
void wDestroyInspectorPanels(void);
|
||||
|
||||
WWindow *wGetWindowOfInspectorForWindow(WWindow *wwin);
|
||||
|
||||
|
||||
@@ -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");
|
||||
|
||||
@@ -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.");
|
||||
|
||||
@@ -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.");
|
||||
|
||||
@@ -97,7 +97,7 @@ char **RSupportedFileFormats(void)
|
||||
return tmp;
|
||||
}
|
||||
|
||||
static void init_cache()
|
||||
static void init_cache(void)
|
||||
{
|
||||
char *tmp;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user