+2010-07-29 Juanma Barranquero <lekktu@gmail.com>
+
+ * make-docfile.c (write_c_args): Warn for old-style empty arglist ().
+
2010-07-25 Juanma Barranquero <lekktu@gmail.com>
* emacsclient.c (getcwd): Fix previous change: make getcwd
register char *p;
int in_ident = 0;
char *ident_start;
- int ident_length;
+ int ident_length = 0;
fprintf (out, "(fn");
identifier. */
if (c == ',' || c == ')')
{
+ if (ident_length == 0)
+ {
+ error ("empty arg list for `%s' should be (void), not ()", func);
+ continue;
+ }
+
if (strncmp (ident_start, "void", ident_length) == 0)
continue;