Fix warning on self check Sparse complain about the using do while without compound statment in pre-process.c. This trivial patch fixes that. Signed-Off-By: Christopher Li <sparse@xxxxxxxxxxx> Index: sparse/pre-process.c =================================================================== --- sparse.orig/pre-process.c 2006-11-22 04:05:10.000000000 -0800 +++ sparse/pre-process.c 2006-11-22 23:44:34.000000000 -0800 @@ -43,20 +43,24 @@ static const char **angle_includepath = includepath + 1; static const char **sys_includepath = includepath + 1; -#define dirty_stream(stream) \ - do if (!stream->dirty) { \ - stream->dirty = 1; \ - if (!stream->ifndef) \ - stream->protect = NULL; \ +#define dirty_stream(stream) \ + do { \ + if (!stream->dirty) { \ + stream->dirty = 1; \ + if (!stream->ifndef) \ + stream->protect = NULL; \ + } \ } while(0) -#define end_group(stream) \ - do if (stream->ifndef == stream->top_if) { \ - stream->ifndef = NULL; \ - if (!stream->dirty) \ - stream->protect = NULL; \ - else if (stream->protect) \ - stream->dirty = 0; \ +#define end_group(stream) \ + do { \ + if (stream->ifndef == stream->top_if) { \ + stream->ifndef = NULL; \ + if (!stream->dirty) \ + stream->protect = NULL; \ + else if (stream->protect) \ + stream->dirty = 0; \ + } \ } while(0) #define nesting_error(stream) \ - 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