about summary refs log tree commit diff
path: root/pkgs/applications/office/homebank/fix-clang-build.diff
blob: 1b8c7fd359e23613288479ec7a1f532c50e4a68d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
C Standard says in 6.8.1:

    labeled-statement:
      identifier : statement
      case constant-expression : statement
      default : statement

Notably, only expressions and no declarations are allowed. A common workaround for this
is adding an empty statement.

diff --git a/src/rep-budget.c b/src/rep-budget.c
index eb5cce6..61e2e77 100644
--- a/src/rep-budget.c
+++ b/src/rep-budget.c
@@ -255,7 +255,7 @@ gint tmpmode;
 	}
 	else
 	{
-libname:
+libname: ;
 	gchar *name;
 	
 		gtk_tree_model_get(model, iter,