Re: [PATCH 2/2] selftests/lib.mk: silence some clang warnings that gcc already ignores

2024-05-31 Thread Shuah Khan
On 5/30/24 13:28, John Hubbard wrote: On 5/30/24 7:25 AM, Shuah Khan wrote: On 5/28/24 20:08, John Hubbard wrote: gcc defaults to silence (off) for the following warnings, but clang defaults to the opposite. These warnings are not useful for kselftests, so silence them for the clang builds as w

Re: [PATCH 2/2] selftests/lib.mk: silence some clang warnings that gcc already ignores

2024-05-30 Thread John Hubbard
On 5/30/24 7:25 AM, Shuah Khan wrote: On 5/28/24 20:08, John Hubbard wrote: gcc defaults to silence (off) for the following warnings, but clang defaults to the opposite. These warnings are not useful for kselftests, so silence them for the clang builds as well: Please you add more information

Re: [PATCH 2/2] selftests/lib.mk: silence some clang warnings that gcc already ignores

2024-05-30 Thread Shuah Khan
On 5/28/24 20:08, John Hubbard wrote: gcc defaults to silence (off) for the following warnings, but clang defaults to the opposite. These warnings are not useful for kselftests, so silence them for the clang builds as well: Please you add more information on why they aren't useful for kselftest

[PATCH 2/2] selftests/lib.mk: silence some clang warnings that gcc already ignores

2024-05-28 Thread John Hubbard
gcc defaults to silence (off) for the following warnings, but clang defaults to the opposite. These warnings are not useful for kselftests, so silence them for the clang builds as well: -Wno-address-of-packed-member -Wno-gnu-variable-sized-type-not-at-end This eliminates warnings for the