mirror of
https://github.com/gryf/wmaker.git
synced 2026-01-06 13:54:12 +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
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user