summaryrefslogtreecommitdiff
path: root/lib-src/make-docfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib-src/make-docfile.c')
-rw-r--r--lib-src/make-docfile.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib-src/make-docfile.c b/lib-src/make-docfile.c
index 99da7b85186..124572cb899 100644
--- a/lib-src/make-docfile.c
+++ b/lib-src/make-docfile.c
@@ -722,6 +722,9 @@ scan_c_file (filename, mode)
fprintf (outfile, "\n\n");
write_c_args (outfile, buf, argbuf, minargs, maxargs);
}
+ else if (defunflag && maxargs == -1 && !saw_usage)
+ /* The DOC should provide the usage form. */
+ fprintf (stderr, "Missing `usage' for function `%s'.\n", buf);
}
}
eof: