Andres Freund <andres(at)anarazel(dot)de> writes:
> On 2025-09-16 18:48:07 -0400, Tom Lane wrote:
>> It's not clear to me how well this approach will play with
>> non-GCC compilers.
> I'd assume we'd do something like
> #if has_attribute(nonstring)
> #define pg_nonstring __attribute__((nonstring))
> #else
> ...
> #define pg_nonstring
> #endif
> I can't really imagine that causing issues for other compilers...
Well, it wouldn't cause build failures, but perhaps it might fail
to silence comparable warnings from other compilers? This is
hypothetical of course, I don't know of any such case today.
regards, tom lane