1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-19 12:28:22 +01:00

Fix gcc warnings

This patch fixes the following warnings (with gcc 4.2.3)

    defaults.c:980: warning: unused variable 'replace'
    main.c:504: warning: 'watchPath' may be used uninitialized in this function
    main.c:504: note: 'watchPath' was declared here
    startup.c:616: warning: implicit declaration of function 'XrmUniqueQuark'
This commit is contained in:
Carlos R. Mafra
2008-11-10 01:35:57 +01:00
parent d680e6e580
commit 0c469de04f
3 changed files with 3 additions and 2 deletions

View File

@@ -977,7 +977,7 @@ static Bool
fixupCachedPixmapsPaths(WMPropList *dict)
{
WMPropList *allApps, *app, *props, *iconkey, *icon, *newicon;
char *path, *fixedpath, *ptr, *search, *replace;
char *path, *fixedpath, *ptr, *search;
int i, len, slen;
Bool changed = False;

View File

@@ -501,7 +501,7 @@ check_defaults()
static void
inotifyWatchConfig()
{
char *watchPath;
char *watchPath = NULL;
inotifyFD = inotify_init(); /* Initialise an inotify instance */
if (inotifyFD < 0) {
wwarning(_("could not initialise an inotify instance."

View File

@@ -34,6 +34,7 @@
#endif
#include <X11/Xlib.h>
#include <X11/Xresource.h>
#include <X11/Xutil.h>
#include <X11/cursorfont.h>
#include <X11/Xproto.h>