summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArnaud Fontaine <arnau@debian.org>2012-06-05 12:37:09 +0900
committerArnaud Fontaine <arnau@debian.org>2012-06-05 12:37:09 +0900
commitc70e20694b27928429715b964f32e0abc519cb19 (patch)
tree0b26b924329fecc4a08c0e40d05494b90e0253cb
parent7018537e9003a1fd311a5875d12f135b9057c184 (diff)
Clear GCC warning (-Wmaybe-uninitialized).
-rw-r--r--transSet.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/transSet.c b/transSet.c
index 882bd6e..6a99f8b 100644
--- a/transSet.c
+++ b/transSet.c
@@ -130,7 +130,7 @@ int
main (int argc, char **argv)
{
Bool gotd = False;
- double d;
+ double d = 0.75;
unsigned int opacity;
unsigned int current_opacity;
select_method_t select_method = SELECT_METHOD_CLICK;
@@ -301,9 +301,6 @@ main (int argc, char **argv)
break;
}
- if (!gotd)
- d = 0.75;
-
/* get property */
XGetWindowProperty (dpy, target_win, XInternAtom (dpy, OPACITY, False),
0L, 1L, False, XA_CARDINAL, &actual, &format, &n, &left,