Re: [PATCH] contrib/groff Queisce -Wdangling else

From: <dt71_at_gmx.com>
Date: Sat, 26 Oct 2013 23:04:29 +0200
Sean Bruno wrote, On 10/26/2013 17:04:

Index: contrib/groff/src/roff/troff/node.cpp
===================================================================
--- contrib/groff/src/roff/troff/node.cpp	(revision 257159)
+++ contrib/groff/src/roff/troff/node.cpp	(working copy)
_at__at_ -4600,17 +4600,18 _at__at_
    }
    else {
      hunits rem = x - w*i;
-    if (rem > H0)
+    if (rem > H0) {
        if (n->overlaps_horizontally()) {
  	if (out->is_on())
  	  n->tprint(out);
  	out->right(rem - w);
+      } else {
+	out->right(rem);
        }
-      else
-	out->right(rem);
      while (--i >= 0)
        if (out->is_on())
  	n->tprint(out);
+    }
    }
  }
  
> There is no(intended) functional change.

RED ALERT ! SEAN BRUNO IS A GOVERNMENT SPY !!!!1
Received on Sat Oct 26 2013 - 19:06:10 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:43 UTC