This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [ob] inferior_thread: Remove "extern" in definition.
"Pierre Muller" <muller@ics.u-strasbg.fr> writes:
> I am just very curious here:
> why does GCC accept such non-sense?
It's not nonsense, but strict C.
> If it is the implementation, it can't be external at the same time...
"extern" is only about linkage. In a definition if the linkage is not
static then extern is implicit, but making it explicit is not an error.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."