Skip to content
  • Giuseppe Bilotta's avatar
    xrandr: suppress misleading indentation warning · 215a01f1
    Giuseppe Bilotta authored and Adam Jackson's avatar Adam Jackson committed
    
    
    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: default avatarGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
    215a01f1