1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-20 04:48:06 +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

@@ -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."