mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 20:38:08 +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:
@@ -977,7 +977,7 @@ static Bool
|
|||||||
fixupCachedPixmapsPaths(WMPropList *dict)
|
fixupCachedPixmapsPaths(WMPropList *dict)
|
||||||
{
|
{
|
||||||
WMPropList *allApps, *app, *props, *iconkey, *icon, *newicon;
|
WMPropList *allApps, *app, *props, *iconkey, *icon, *newicon;
|
||||||
char *path, *fixedpath, *ptr, *search, *replace;
|
char *path, *fixedpath, *ptr, *search;
|
||||||
int i, len, slen;
|
int i, len, slen;
|
||||||
Bool changed = False;
|
Bool changed = False;
|
||||||
|
|
||||||
|
|||||||
@@ -501,7 +501,7 @@ check_defaults()
|
|||||||
static void
|
static void
|
||||||
inotifyWatchConfig()
|
inotifyWatchConfig()
|
||||||
{
|
{
|
||||||
char *watchPath;
|
char *watchPath = NULL;
|
||||||
inotifyFD = inotify_init(); /* Initialise an inotify instance */
|
inotifyFD = inotify_init(); /* Initialise an inotify instance */
|
||||||
if (inotifyFD < 0) {
|
if (inotifyFD < 0) {
|
||||||
wwarning(_("could not initialise an inotify instance."
|
wwarning(_("could not initialise an inotify instance."
|
||||||
|
|||||||
@@ -34,6 +34,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <X11/Xlib.h>
|
#include <X11/Xlib.h>
|
||||||
|
#include <X11/Xresource.h>
|
||||||
#include <X11/Xutil.h>
|
#include <X11/Xutil.h>
|
||||||
#include <X11/cursorfont.h>
|
#include <X11/cursorfont.h>
|
||||||
#include <X11/Xproto.h>
|
#include <X11/Xproto.h>
|
||||||
|
|||||||
Reference in New Issue
Block a user