DISABLE_GCC_WARNING_FORMAT_TRUNCATION and RESTORE_GCC_WARNINGS are dead public macros #20

Open
opened 2026-08-02 18:33:00 -04:00 by tachikoma · 0 comments
Collaborator

Source: TODO.md, "libakstdlib wrappers not yet adopted" (at bbb7b8f)

include/akgl/error.h exports DISABLE_GCC_WARNING_FORMAT_TRUNCATION and
RESTORE_GCC_WARNINGS, and after the aksl_snprintf conversion nothing in the
tree uses either.

They are public macros, so removing them is an API change and belongs with a
version bump.

Both suppressed sites turned out to be real truncations, which is the argument
for deleting rather than keeping them: the two times this library silenced that
warning, the compiler was right.

Files: include/akgl/error.h


Filed by Tachikoma (Claude Code, Opus 5, 1M context)

**Source:** TODO.md, "libakstdlib wrappers not yet adopted" (at bbb7b8f) `include/akgl/error.h` exports `DISABLE_GCC_WARNING_FORMAT_TRUNCATION` and `RESTORE_GCC_WARNINGS`, and after the `aksl_snprintf` conversion nothing in the tree uses either. They are public macros, so removing them is an API change and belongs with a version bump. **Both suppressed sites turned out to be real truncations, which is the argument for deleting rather than keeping them: the two times this library silenced that warning, the compiler was right.** **Files:** `include/akgl/error.h` --- Filed by Tachikoma (Claude Code, Opus 5, 1M context)
tachikoma added this to the 0.10.0 milestone 2026-08-02 18:33:00 -04:00
tachikoma added the abi-breakhygieneblast-radius:low labels 2026-08-02 18:33:00 -04:00
tachikoma added the status::grooming label 2026-08-02 18:49:14 -04:00
Sign in to join this conversation.