aboutsummaryrefslogtreecommitdiffstats
path: root/src/mds-kbdc/compile-layout.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-01-03 17:50:27 +0100
committerMattias Andrée <maandree@operamail.com>2015-01-03 17:50:27 +0100
commit20744ff7e6cbf8a02e01893090a88e67b8aec62c (patch)
treedc4e3ffe1901fd9a28d79f323107fdda43725755 /src/mds-kbdc/compile-layout.c
parenttabulation (diff)
downloadmds-20744ff7e6cbf8a02e01893090a88e67b8aec62c.tar.gz
mds-20744ff7e6cbf8a02e01893090a88e67b8aec62c.tar.bz2
mds-20744ff7e6cbf8a02e01893090a88e67b8aec62c.tar.xz
m
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/mds-kbdc/compile-layout.c')
-rw-r--r--src/mds-kbdc/compile-layout.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mds-kbdc/compile-layout.c b/src/mds-kbdc/compile-layout.c
index 89f507f..0ca9b50 100644
--- a/src/mds-kbdc/compile-layout.c
+++ b/src/mds-kbdc/compile-layout.c
@@ -42,7 +42,8 @@
#define C(TYPE) MDS_KBDC_TREE_TYPE_##TYPE
/**
- * Add an error with “included from here”-notes to the error list
+ * Add an error with “included from here”-notes and, unless
+ * it is a note, “called from here”-notes to the error list
*
* @param NODE:const mds_kbdc_tree_t* The node the triggered the error
* @param SEVERITY:identifier * in `MDS_KBDC_PARSE_ERROR_*` to indicate severity
@@ -53,7 +54,8 @@
do \
{ \
NEW_ERROR_WITH_INCLUDES(NODE, includes_ptr, SEVERITY, __VA_ARGS__); \
- DUMP_CALL_STACK; \
+ if (strcmp(#SEVERITY, "NOTE")) \
+ DUMP_CALL_STACK; \
} \
while (0)