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:
@@ -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."
|
||||
|
||||
Reference in New Issue
Block a user