Hi,

with the current setup this causes an error and stops compilation, even if it looks harmless.

casting to (void *) seems to solve the problem, I changed both the _KYE and the _VAL macros.

I have tested this on GCC4 and x86 and commited it, thanks.

I'll resume sparc/gcc2.95 testing ASAP.

Riccardo
I think this is caused by a compiler bug, that can be safely ignored.
The lines in question are similar to:
GSI_MAP_CLEAR_KEY(node);

And for the case GSI_MAP_KTYPES = GSUNION_PTR this is defined as:
#define GSI_MAP_CLEAR_KEY(node) GSI_MAP_WRITE_KEY(map, &node->key, (GSIMapKey)NULL)

And GSIMapKey is a union that contains in that case void* as a possible type. I don't understand why NULL isn't detected as belonging to that type, but you could try to add another type cast to the line above and see that gets reported. #define GSI_MAP_CLEAR_KEY(node) GSI_MAP_WRITE_KEY(map, &node->key, (GSIMapKey)(void *)NULL) Or rather use (char*)? I really don't see what goes on in the compiler to complain here.



_______________________________________________
Discuss-gnustep mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnustep

Reply via email to