diff options
author | Jeremy Huddleston <jeremyhu@apple.com> | 2011-05-08 16:42:50 -0700 |
---|---|---|
committer | Jeremy Huddleston <jeremyhu@apple.com> | 2011-05-08 16:47:51 -0700 |
commit | 30e9137bf94f58f66cc6883b0a47eab3159c8be6 (patch) | |
tree | 041b4edd3148ccc90957b4027255199731caace6 | |
parent | 1e48aad532aa19a35efbee24cddca4c43e02afe7 (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.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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 (")"); |