aboutsummaryrefslogtreecommitdiffstats
path: root/cse.c
diff options
context:
space:
mode:
authorChristopher Li <sparse@chrisli.org>2005-02-18 09:03:46 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-07 21:06:26 -0700
commit0c2211161823ceada304fea85bd4b2dc6fb5ad27 (patch)
tree055acbbaa8ae5ffa22eee28844f3a5068f10aafe /cse.c
parentf35a1af19298793d51467e0ff2315f9a5758c9bc (diff)
downloadsparse-0c2211161823ceada304fea85bd4b2dc6fb5ad27.tar.gz
sparse-0c2211161823ceada304fea85bd4b2dc6fb5ad27.tar.xz
sparse-0c2211161823ceada304fea85bd4b2dc6fb5ad27.zip
[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];
Diffstat (limited to 'cse.c')
-rw-r--r--cse.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cse.c b/cse.c
index c713cb3..42b177c 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;
}