[LTP] [PATCH 3/3] API: Cause GCC/Clang to blow up when TEST is used in the library
Richard Palethorpe
rpalethorpe@suse.de
Tue Jun 29 09:15:28 CEST 2021
Hello,
Petr Vorel <pvorel@suse.cz> writes:
> Hi Richie,
>
>> +#if LTPLIB
>> +#define TEST(SCALL) _Pragma("GCC error \"Do not use TEST macro in library\"")
>> +#define TEST_VOID(SCALL) _Pragma("GCC error \"Do not use TEST_VOID macro in library\"")
>
> It'd be nice to document "Do not use TEST() macro in library" in LTP Library API
> Writing Guidelines [1].
Yes, I will submit this in the Sparse patch set today.
>
> Kind regards,
> Petr
>
> [1] https://github.com/linux-test-project/ltp/wiki/LTP-Library-API-Writing-Guidelines
--
Thank you,
Richard.
More information about the ltp
mailing list