]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
lib-json: drop invalid ATTR_PURE
authorSam James <sam@gentoo.org>
Mon, 30 Jun 2025 03:51:19 +0000 (04:51 +0100)
committerTimo Sirainen <timo.sirainen@open-xchange.com>
Mon, 30 Jun 2025 07:18:54 +0000 (10:18 +0300)
commita60ada751a827f73c3f0d0c0059f340918e981ad
tree490350ed24cb7158185b506167f4fa869e0a35b7
parent20bcfb656c741426019337199f54de07491ae587
lib-json: drop invalid ATTR_PURE

Several functions in json-types.h mutate one of their arguments (usually *size_r)
and hence aren't eligible for __attribute__((pure)) which promises that
the function has no side-effects.

This manifests as a test failure in test-json-istream.c when building
Dovecot with -ftrivial-auto-var-init=zero (or =pattern).
src/lib-json/json-types.h