Re: [PATCH v2] ubsan: Silence W=1 warnings in self-test

2024-02-05 Thread Marco Elver
On Mon, 5 Feb 2024 at 10:03, Kees Cook wrote: > > Silence a handful of W=1 warnings in the UBSan selftest, which set > variables without using them. For example: > >lib/test_ubsan.c:101:6: warning: variable 'val1' set but not used > [-Wunused-but-set-variable] > 101 | int val1 =

[PATCH v2] ubsan: Silence W=1 warnings in self-test

2024-02-05 Thread Kees Cook
Silence a handful of W=1 warnings in the UBSan selftest, which set variables without using them. For example: lib/test_ubsan.c:101:6: warning: variable 'val1' set but not used [-Wunused-but-set-variable] 101 | int val1 = 10; | ^ Reported-by: kernel test robot