From: Rusty Russell Date: Tue, 7 Apr 2009 02:10:50 +0000 (+0930) Subject: Joey found a bug. Bad Rusty, use sentinal attribute. X-Git-Url: https://git.ozlabs.org/?p=ccan;a=commitdiff_plain;h=445d1468f5fc569f81766fe12df8dfec58e7edb1 Joey found a bug. Bad Rusty, use sentinal attribute. --- 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",