postgresql/src/include/lib
Peter Eisentraut 76f4b92bac Use standard C23 and C++ attributes if available
Use the standard C23 and C++ attributes [[nodiscard]], [[noreturn]],
and [[maybe_unused]], if available.

This makes pg_nodiscard and pg_attribute_unused() available in
not-GCC-compatible compilers that support C23 as well as in C++.

For pg_noreturn, we can now drop the GCC-specific and MSVC-specific
fallbacks, because the C11 and the C++ implementation will now cover
all required cases.

Note, in a few places, we need to change the position of the attribute
because it's not valid in that place in C23.

Discussion: https://www.postgresql.org/message-id/flat/pxr5b3z7jmkpenssra5zroxi7qzzp6eswuggokw64axmdixpnk@zbwxuq7gbbcw
2026-04-01 08:15:02 +02:00
..
binaryheap.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
bipartite_match.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
bloomfilter.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
dshash.h dshash: Make it possible to suppress out of memory errors 2026-03-19 11:51:17 -04:00
hyperloglog.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
ilist.h Rename AssertVariableIsOfType to StaticAssertVariableIsOfType 2026-02-03 08:45:24 +01:00
integerset.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
knapsack.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
pairingheap.h Rename AssertVariableIsOfType to StaticAssertVariableIsOfType 2026-02-03 08:45:24 +01:00
qunique.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
radixtree.h Use standard C23 and C++ attributes if available 2026-04-01 08:15:02 +02:00
rbtree.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
simplehash.h Reduce header inclusions via execnodes.h 2026-03-16 14:34:57 +01:00
sort_template.h Future-proof sort template against undefined behavior 2026-02-07 17:02:35 +07:00
stringinfo.h Update copyright for 2026 2026-01-01 13:24:10 -05:00