xrandr: suppress misleading indentation warning
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Wed, 18 Jan 2017 07:52:23 +0000 (08:52 +0100)
committerAdam Jackson <ajax@redhat.com>
Fri, 24 Mar 2017 15:10:51 +0000 (11:10 -0400)
commit215a01f1513f918e7295a8a477d4674f7b8085f0
tree21b8f58a0ec475d5347e53c1144c1b14057f65f2
parent85e95db7120da3bdaf9efb3033be5f9338e6c328
xrandr: suppress misleading indentation warning

When printing out rotations, we print a space before any item other than
the first, and set `first = False` in each block where we print.
However, this is done in the same line as the conditional that checks if
first is set, which may give the impression that the assignment is also
under the conditional. This is not the case, and recent GCC warns about
this.

Move the assignment to after we print the value we want to print, which
(1) doesn't mislead about the indentation, and
(2) makes logical sense as the _next_ entry is what won't be the first.

Signed-off-by: Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
xrandr.c