Package: sgt-puzzles / 20170606.272beef-1

fix-ftbfs-with-gcc-6.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Author: Ben Hutchings <ben@decadent.org.uk
Date: Thu, 30 Jun 2016 14:43:16 +0200
Description: Fix FTBFS with gcc 6
 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.
Bug-Debian: https://bugs.debian.org/811577

--- a/towers.c
+++ b/towers.c
@@ -388,12 +388,12 @@ static int solver_easy(struct latin_solv
 	    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;