From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Philipp Stephani
I'm not going to belabor the point. If you want to use si= zes as version numbers
it's not worth fighting over. If we ever change a function API without = changing
the structure layout, I guess we'll have to insert a dummy structure me= mber to
make the size grow. Sounds like a kludge, but there are worse kludges in Em= acs.
Getting back to the original issue, your worry was that a ptrdiff_t size wo= uld
lead to unnecessary warnings.=C2=A0 I didn't get any such warning when = compiling this
with gcc -Wall:
#include <stddef.h>
ptrdiff_t size;
int main (void) { return size < sizeof size; }
I expect the warnings you're worried about occur when comparing an unkn= own
ptrdiff_t with an unknown size_t; they should not occur when comparing an unknown ptrdiff_t with a size_t constant.
=C2=A0 If that's the case= , let's leave it
ptrdiff_t.=C2=A0 And even if it's not the case, I'm inclined to lea= ve it ptrdiff_t,
as any module code will run into similar issues with the other ptrdiff_t
components, so why make an exception for this one?