[KinoSearch] C90 vs C99
Peter Karman
peter at peknet.com
Thu Jan 14 07:27:48 PST 2010
I seem to recall a recent move from C90 to C99 compliance (or was it the
reverse?) as part of a Win32 compatibility change. (I could have the details
wrong; memory is fuzzy.)
In any case, I've seen a couple instances lately of this kind of error:
../core/KinoSearch/Util/SortExternal.c: In function `S_find_endpost':
../core/KinoSearch/Util/SortExternal.c:194: error: 'for' loop initial
declaration used outside C99 mode
error building ../core/KinoSearch/Util/SortExternal.o from
'../core/KinoSearch/Util/SortExternal.c'
I fixed one such issue in KS r5678, and now I see the one above. Which makes me
wonder: what standard are we aiming for, and do we need to be telling the
compiler that?
--
Peter Karman . http://peknet.com/ . peter at peknet.com
More information about the kinosearch
mailing list