diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2026-01-15 11:31:29 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2026-01-16 23:31:50 +0000 |
| commit | 74cac745fe302b26ad22114f60735c8b73e90571 (patch) | |
| tree | cc327331973bb7a50f84341c7b73e0c56c1194d5 /lib/Transforms/Scalar/(public-mirror) | |
| parent | 988555e329d00a47c42e5e849e78c1b8e4ce2e17 (diff) | |
Building the LINT-NOIP kernel on amd64 with clang 21 results in a
-Werror warning similar to:
sys/dev/mxge/if_mxge.c:1846:44: error: variable 'sum' is uninitialized when passed as a const pointer argument here [-Werror,-Wuninitialized-const-pointer]
1846 | cksum_offset, sizeof(sum), (caddr_t)&sum);
| ^~~
Indeed, if both `INET` and `INET6` are undefined, `sum` is never
initialized. Initialize it to zero to silence the warning.
Reviewed by: jhibbits
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D54730
Diffstat (limited to 'lib/Transforms/Scalar/(public-mirror)')
0 files changed, 0 insertions, 0 deletions
