From 0c2211161823ceada304fea85bd4b2dc6fb5ad27 Mon Sep 17 00:00:00 2001 From: Christopher Li Date: Fri, 18 Feb 2005 09:03:46 -0700 Subject: [PATCH] [PATCH] using 0 as NULL in sparse This trivial patch remove the warning when I try to compile sparse in with sparse. Another warning I did not fix is: ../pre-process.c:554:18: warning: bad constant expression The offending line is: struct arg args[nargs]; --- cse.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cse.c b/cse.c index c713cb38..42b177c5 100644 --- a/cse.c +++ b/cse.c @@ -258,12 +258,12 @@ static struct basic_block *trivial_common_parent(struct basic_block *bb1, struct struct basic_block *parent; if (bb_list_size(bb1->parents) != 1) - return 0; + return NULL; parent = first_basic_block(bb1->parents); if (bb_list_size(bb2->parents) != 1) - return 0; + return NULL; if (first_basic_block(bb2->parents) != parent) - return 0; + return NULL; return parent; } -- 2.11.4.GIT