aboutsummaryrefslogtreecommitdiffstats
path: root/src/mds-kbdc/compile-layout.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-07-10 16:00:34 +0200
committerMattias Andrée <maandree@kth.se>2016-07-10 16:00:34 +0200
commit58f8347e84d2820cada64c513bb0f2b81ecd494a (patch)
tree758f5f2241c384b8d0e8ce349498784515ae5607 /src/mds-kbdc/compile-layout.c
parentAdd -l flags for mds-libinput (diff)
downloadmds-58f8347e84d2820cada64c513bb0f2b81ecd494a.tar.gz
mds-58f8347e84d2820cada64c513bb0f2b81ecd494a.tar.bz2
mds-58f8347e84d2820cada64c513bb0f2b81ecd494a.tar.xz
Fix new GCC warnings
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--src/mds-kbdc/compile-layout.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mds-kbdc/compile-layout.c b/src/mds-kbdc/compile-layout.c
index b8d62f3..f585030 100644
--- a/src/mds-kbdc/compile-layout.c
+++ b/src/mds-kbdc/compile-layout.c
@@ -2563,7 +2563,8 @@ static int compile_subtree(mds_kbdc_tree_t* restrict tree)
case C(FUNCTION): c (function); break;
case C(MACRO): c (macro); break;
case C(ASSUMPTION):
- t ((includes_ptr == 0) && compile_subtree(tree->assumption.inner));
+ if (includes_ptr == 0)
+ fail_if (compile_subtree(tree->assumption.inner));
break;
case C(ASSUMPTION_HAVE): c (have); break;
case C(ASSUMPTION_HAVE_CHARS): c (have_chars); break;