Repository navigation
v1.1.1
1.1.1 (2026-11-05)
This release makes MNAV_NODISCARD the [[nodiscard]] attribute in
GCC 14's C23 mode, so that a C program built with GCC 14 is warned
when it drops a status the library returns.
Fixed
MNAV_NODISCARDis meant to make every function that returns a
status warn when its result is dropped. In C, it expanded to
[[nodiscard]]only when__STDC_VERSION__was at least202311L.
GCC 14 has the attribute in its C23 mode but reports
__STDC_VERSION__as202000Lthere, so under GCC the macro was
empty, and a program built with GCC 14 could drop any status from
the library without a warning. Clang 20 reports202311L. In C,
the macro is now the attribute in any dialect after C17 whose
compiler defines__has_c_attributeand reportsnodiscard. C17
and older dialects keep the empty expansion, and C++ is unchanged.
(#346)