mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-25 16:02:33 +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
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user