mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
check unused and unmodified vars in all modules, not just main
This commit is contained in:
@@ -36,7 +36,7 @@ fn(c mut Crc32) generate_table(poly int) {
|
||||
c.table << crc
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
fn(c &Crc32) sum32(b []byte) u32 {
|
||||
mut crc := ~u32(0)
|
||||
for i := 0; i < b.len; i++ {
|
||||
@@ -58,6 +58,6 @@ pub fn new(poly int) &Crc32 {
|
||||
|
||||
// calculate crc32 using ieee
|
||||
pub fn sum(b []byte) u32 {
|
||||
mut c := new(ieee)
|
||||
c := new(ieee)
|
||||
return c.sum32(b)
|
||||
}
|
||||
|
Reference in New Issue
Block a user