definitions with differing signatures.
+2012-07-06 Andreas Schwab <schwab@linux-m68k.org>
+
+ * make-docfile.c (write_globals): Warn about duplicate function
+ definitions with differing signatures.
+
2012-07-03 Paul Eggert <eggert@cs.ucla.edu>
* make-docfile.c (scan_c_file): Suppress GCC warning.
while (i + 1 < num_globals
&& !strcmp (globals[i].name, globals[i + 1].name))
- ++i;
+ {
+ if (globals[i].type == FUNCTION
+ && globals[i].value != globals[i + 1].value)
+ error ("function '%s' defined twice with differing signatures",
+ globals[i].name);
+ ++i;
+ }
}
if (!seen_defun)