[PATCH] selftests/arm64: Prevent build warnings from -Wmaybe-uninitialized
Thomas Weißschuh
thomas.weissschuh at linutronix.de
Mon Jul 7 06:10:44 PDT 2025
Hi Anshuman,
On Wed, Jun 25, 2025 at 03:01:38AM +0100, Anshuman Khandual wrote:
> Arguments passed into WEXITSTATUS() should have been initialized earlier.
> Otherwise following warning show up while building platform selftests on
> arm64. Hence just zero out all the relevant local variables to avoid the
> build warning.
>
> Warning: ‘status’ may be used uninitialized in this function [-Wmaybe-uninitialized]
Can you give the following patch a try instead?
https://lore.kernel.org/lkml/20250707-nolibc-waitpid-uninitialized-v1-1-dcd4e70bcd8f@linutronix.de/
Thomas
More information about the linux-arm-kernel
mailing list