[ob] inferior_thread: Remove "extern" in definition.

Andreas Schwab schwab@linux-m68k.org
Fri Mar 27 13:57:00 GMT 2009


"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."



More information about the Gdb-patches mailing list