]> git.ozlabs.org Git - ccan/blobdiff - tools/ccanlint/idempotent.c
Joey found a bug. Bad Rusty, use sentinal attribute.
[ccan] / tools / ccanlint / idempotent.c
index ffe3d7380483bc3e4ee7b9fc1faf01ffd1cdbe9f..fa65b05faa8559e4158335c7c57ae9665c45b54a 100644 (file)
@@ -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",