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