fix clang warnings reported by Tuncer Ayaz
R=rsc http://codereview.appspot.com/6744054
This commit is contained in:
parent
34d629c857
commit
0cfb376070
24 changed files with 586 additions and 588 deletions
|
|
@ -130,12 +130,12 @@ readdisk(uchar *buf, vlong offset, int len)
|
|||
int i, j, k, n;
|
||||
|
||||
if(offset >= partend){
|
||||
memset(buf, 0xFB, sizeof buf);
|
||||
memset(buf, 0xFB, len);
|
||||
return buf;
|
||||
}
|
||||
|
||||
if(offset+len > partend){
|
||||
memset(buf, 0xFB, sizeof buf);
|
||||
memset(buf, 0xFB, len);
|
||||
len = partend - offset;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -413,7 +413,7 @@ checklumpcache(void)
|
|||
}
|
||||
if(lumpcache.avail != lumpcache.allowed - size){
|
||||
fprint(2, "mismatched available=%d and allowed=%d - used=%d space", lumpcache.avail, lumpcache.allowed, size);
|
||||
*(int*)0=0;
|
||||
*(volatile int*)0=0;
|
||||
}
|
||||
|
||||
nfree = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue