Christopher Li wrote:
So here is what I got. A patch address both of our need. It gives warning of using sizeof(void) explicitly. void* + offset will continue to work without warnings. It will also make is_byte_type() continue to work as it was before. Here is my test script: void *p; int i = sizeof(void); int j = sizeof(*p);
I can't test it right now, but does it give a warning for both sizeof's above? If just first results in a warning, then I think that quite reasonable.
Tommy -- To unsubscribe from this list: send the line "unsubscribe linux-sparse" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html