1
1
mirror of https://github.com/rui314/mold.git synced 2024-11-10 19:26:38 +03:00

Suppress -Wformat-overflow GCC warning

This commit is contained in:
Rui Ueyama 2022-01-07 10:56:55 +09:00
parent a27c113d35
commit 9004c514da

1
tar.cc
View File

@ -20,6 +20,7 @@ struct UstarHeader {
int sum = 0;
for (i64 i = 0; i < sizeof(*this); i++)
sum += ((u8 *)this)[i];
assert(sum < 1000000);
sprintf(checksum, "%06o", sum);
}