26 May
2006
26 May
'06
8:34 p.m.
On Thu, 2006-05-25 at 18:26 -0500, Albert Chin wrote:
src/stats.c has the following: gchar *tag_names[SC_TYPE_MAX] = { [SC_TYPE_DROPPED] = "dropped", [SC_TYPE_PROCESSED] = "processed", };
"[SC_TYPE_DROPPED]" is a GCC thing. I guess GCC allows you to index items in an array. But, the vendor compilers from Sun, HP, IBM, etc. don't.
No, it is not a gcc extension, but AFAIK it is C99. Anyway, thanks for the hint, I have just commited a similar fix, which should be available in tomorrow's snapshot. -- Bazsi