X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=tools%2Fccanlint%2Fidempotent.c;h=fa65b05faa8559e4158335c7c57ae9665c45b54a;hb=503dbd5986e381f8d56b3e7ce0ee00b839a42aa6;hp=ffe3d7380483bc3e4ee7b9fc1faf01ffd1cdbe9f;hpb=a3d9f540245cbb6d4e2dc16d51d838d753c636a2;p=ccan 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",