mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 12:28:22 +01:00
Avoid more gcc warnings
WUtil.h:212: warning: function declaration isn’t a prototype WUtil.h:259: warning: function declaration isn’t a prototype WUtil.h:300: warning: function declaration isn’t a prototype WINGsP.h:593: warning: function declaration isn’t a prototype WINGsP.h:599: warning: function declaration isn’t a prototype WINGs.h:616: warning: function declaration isn’t a prototype raster.c:295: warning: no previous prototype for ‘calculateCombineArea’
This commit is contained in:
@@ -613,7 +613,7 @@ void WMInitializeApplication(char *applicationName, int *argc, char **argv);
|
||||
void WMSetResourcePath(char *path);
|
||||
|
||||
/* don't free the returned string */
|
||||
char* WMGetApplicationName();
|
||||
char* WMGetApplicationName(void);
|
||||
|
||||
/* Try to locate resource file. ext may be NULL */
|
||||
char* WMPathForResourceOfType(char *resource, char *ext);
|
||||
|
||||
@@ -590,13 +590,13 @@ Bool W_SendDnDClientMessage(Display *dpy, Window win, Atom message,
|
||||
|
||||
void W_DragSourceStartTimer(WMDraggingInfo *info);
|
||||
|
||||
void W_DragSourceStopTimer();
|
||||
void W_DragSourceStopTimer(void);
|
||||
|
||||
void W_DragSourceStateHandler(WMDraggingInfo *info, XClientMessageEvent *event);
|
||||
|
||||
void W_DragDestinationStartTimer(WMDraggingInfo *info);
|
||||
|
||||
void W_DragDestinationStopTimer();
|
||||
void W_DragDestinationStopTimer(void);
|
||||
|
||||
void W_DragDestinationStoreEnterMsgInfo(WMDraggingInfo *info, WMView *toplevel,
|
||||
XClientMessageEvent *event);
|
||||
|
||||
@@ -209,7 +209,7 @@ int wmkdirhier(const char *path);
|
||||
int wrmdirhier(const char *path);
|
||||
|
||||
/* don't free the returned string */
|
||||
char* wgethomedir();
|
||||
char* wgethomedir(void);
|
||||
|
||||
void* wmalloc(size_t size);
|
||||
void* wrealloc(void *ptr, size_t newsize);
|
||||
@@ -256,7 +256,7 @@ WMRange wmkrange(int start, int count);
|
||||
#endif
|
||||
|
||||
|
||||
char* wusergnusteppath();
|
||||
char* wusergnusteppath(void);
|
||||
|
||||
char* wdefaultspathfordomain(char *domain);
|
||||
char* wglobaldefaultspathfordomain(const char *domain);
|
||||
@@ -297,7 +297,7 @@ void WMDeleteInputHandler(WMHandlerID handlerID);
|
||||
* This function will handle all input/timer/idle events, then return.
|
||||
*/
|
||||
|
||||
void WHandleEvents();
|
||||
void WHandleEvents(void);
|
||||
|
||||
/*......................................................................*/
|
||||
|
||||
|
||||
@@ -1,12 +1,10 @@
|
||||
|
||||
#include <unistd.h>
|
||||
#include <X11/Xlocale.h>
|
||||
|
||||
#include "WINGsP.h"
|
||||
|
||||
#include "wconfig.h"
|
||||
|
||||
#include "X11/Xlocale.h"
|
||||
|
||||
extern void W_InitNotificationCenter(void);
|
||||
|
||||
struct W_Application WMApplication;
|
||||
|
||||
@@ -177,8 +177,8 @@ static char **Arguments;
|
||||
|
||||
static int ArgCount;
|
||||
|
||||
extern void EventLoop();
|
||||
extern void StartUp();
|
||||
extern void EventLoop(void);
|
||||
extern void StartUp(Bool defaultScreenOnly);
|
||||
extern int MonitorLoop(int argc, char **argv);
|
||||
|
||||
static Bool multiHead = True;
|
||||
|
||||
@@ -291,9 +291,8 @@ void RCombineImagesWithOpaqueness(RImage * image, RImage * src, int opaqueness)
|
||||
#undef COP
|
||||
}
|
||||
|
||||
int
|
||||
calculateCombineArea(RImage * des, int *sx, int *sy,
|
||||
unsigned int *swidth, unsigned int *sheight, int *dx, int *dy)
|
||||
static int calculateCombineArea(RImage *des, int *sx, int *sy, unsigned int *swidth,
|
||||
unsigned int *sheight, int *dx, int *dy)
|
||||
{
|
||||
int width = (int)*swidth, height = (int)*sheight;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user