On Fri, May 03, 2024 at 07:13:30PM -0700, John Hubbard wrote: > dump_config_tree() is declared to return an int, but the compiler cannot > prove that it always returns any value at all. This leads to a clang > warning, when building via: > > make LLVM=1 -C tools/testing/selftests > > Fix this by unconditionally returning the "err" variable if the code > reaches the end of the function. Reviewed-by: Mark Brown <broonie@xxxxxxxxxx>
Attachment:
signature.asc
Description: PGP signature
- References:
- [PATCH] selftests/alsa: fix a build warning: return a value in all cases
- From: John Hubbard
- [PATCH] selftests/alsa: fix a build warning: return a value in all cases
- Prev by Date: Re: [PATCH 1/1] sound: Support microphone from device Acer 315-24p
- Next by Date: Re: [PATCH] selftests/alsa: fix a build warning: return a value in all cases
- Previous by thread: [PATCH] selftests/alsa: fix a build warning: return a value in all cases
- Next by thread: Re: [PATCH] selftests/alsa: fix a build warning: return a value in all cases
- Index(es):