shithub: puzzles

Download patch

ref: 0dc46506ca85eb49299fc62a4362c8a4a655e320
parent: 49dbf1f60dc5c6bcb6b3ffadf89e7e0c14106638
author: Ben Hutchings <ben@decadent.org.uk>
date: Thu Jun 30 10:43:16 EDT 2016

Towers: Fix indentation of some solver code

gcc 6 warns about statements that are indented as if they were meant
to be part of a preceding conditional block.  In this case I don't
think that was intended, so shift it left.

References: https://bugs.debian.org/811577

--- a/towers.c
+++ b/towers.c
@@ -385,12 +385,12 @@
 	    return ret;
 
 #ifdef STANDALONE_SOLVER
-	    if (solver_show_working)
-		sprintf(prefix, "%*slower bounds for clue %s %d:\n",
-			solver_recurse_depth*4, "",
-			cluepos[c/w], c%w+1);
-	    else
-		prefix[0] = '\0';	       /* placate optimiser */
+	if (solver_show_working)
+	    sprintf(prefix, "%*slower bounds for clue %s %d:\n",
+		    solver_recurse_depth*4, "",
+		    cluepos[c/w], c%w+1);
+	else
+	    prefix[0] = '\0';	       /* placate optimiser */
 #endif
 
 	i = 0;