From 20744ff7e6cbf8a02e01893090a88e67b8aec62c Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 3 Jan 2015 17:50:27 +0100 Subject: m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/mds-kbdc/compile-layout.c | 6 ++++-- 1 file 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) -- cgit v1.2.3-70-g09d2