[gnu.gcc.bug] prototypes in gcc version 1.30

andy@CSVAX.CALTECH.EDU (Andy Fyfe) (11/17/88)

Gcc v 1.30 rejects the following pair as conflicting:
	extern int sprintf();
	extern int sprintf(char *, const char *, ...);
Without the "..." it's fine.  Sprintf in particular is
a favourite extern to appear in code.

% gcc -c x.c
x.c:2: conflicting types for `sprintf'
x.c:1: previous declaration of `sprintf'

rms@WHEATIES.AI.MIT.EDU (Richard Stallman) (11/17/88)

    Gcc v 1.30 rejects the following pair as conflicting:
	    extern int sprintf();
	    extern int sprintf(char *, const char *, ...);

This is what ANSI specifies.  But perhaps I will put this error
under the control of -pedantic.