On 2023-01-28 02:57, Bruno Haible wrote: > + /* With clang up to 15.0.6 (at least), in C++ mode, [[__nodiscard__]] produces > + a warning. */ > +# if __clang_major__ >= 1000 I found this a little hard to follow, as I don't know __clang_major__ by heart and at first misread that as version 10.0.0. How about something like the attached, to simplify this for Clang non-experts?