]> git.ozlabs.org Git - ccan/blobdiff - tools/doc_extract-core.c
tools: set, don't increment bool.
[ccan] / tools / doc_extract-core.c
index 069bf2237c6815f12f428e272970ad863c4b9188..0d6af31737a7ee0e77d56c3059297438e28e2667 100644 (file)
@@ -46,7 +46,7 @@ static char **grab_doc(char **lines, unsigned int **linemap,
                                        warnx("%s:%u:"
                                              " Expected ' *' in comment.",
                                              file, i+1);
-                                       warned++;
+                                       warned = true;
                                }
                                ret[num++] = tal_strdup(ret, lines[i]);
                                if (strstr(lines[i], "*/"))