summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Huddleston <jeremyhu@apple.com>2011-05-08 16:42:50 -0700
committerJeremy Huddleston <jeremyhu@apple.com>2011-05-08 16:47:51 -0700
commit30e9137bf94f58f66cc6883b0a47eab3159c8be6 (patch)
tree041b4edd3148ccc90957b4027255199731caace6
parent1e48aad532aa19a35efbee24cddca4c43e02afe7 (diff)
Dead code removal
xrandr.c:2978:33: warning: Value stored to 'first' is never read if (!first) printf (" "); first = False; ^ ~~~~~ xrandr.c:2966:30: warning: Value stored to 'first' is never read if (!first) printf (" "); first = False; ^ ~~~~~ Found-by: clang static analyzer Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
-rw-r--r--xrandr.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/xrandr.c b/xrandr.c
index f2787e1..564d4da 100644
--- a/xrandr.c
+++ b/xrandr.c
@@ -2963,7 +2963,6 @@ main (int argc, char **argv)
if ((rotations >> i) & 1) {
if (!first) printf (" "); first = False;
printf("%s", direction[i]);
- first = False;
}
}
if (rotations & RR_Reflect_X)
@@ -2973,7 +2972,7 @@ main (int argc, char **argv)
}
if (rotations & RR_Reflect_Y)
{
- if (!first) printf (" "); first = False;
+ if (!first) printf (" ");
printf ("y axis");
}
printf (")");