From 445d1468f5fc569f81766fe12df8dfec58e7edb1 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Tue, 7 Apr 2009 11:40:50 +0930 Subject: [PATCH 1/1] Joey found a bug. Bad Rusty, use sentinal attribute. --- tools/ccanlint/idempotent.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/ccanlint/idempotent.c b/tools/ccanlint/idempotent.c index ffe3d738..fa65b05f 100644 --- a/tools/ccanlint/idempotent.c +++ b/tools/ccanlint/idempotent.c @@ -102,7 +102,7 @@ static char *report_idem(struct ccan_file *f, char *sofar) if (line_info[i].type == DOC_LINE || line_info[i].type == COMMENT_LINE) continue; - if (get_ccan_line_pp(line_info[i].cond, sym, &val) + if (get_ccan_line_pp(line_info[i].cond, sym, &val, NULL) != NOT_COMPILED) return talloc_asprintf_append(sofar, "%s:%u:code outside idempotent region.\n", -- 2.39.2