]> git.ipfire.org Git - thirdparty/gettext.git/commit
Enable better malloc/free checking in a few cases.
authorBruno Haible <bruno@clisp.org>
Sat, 3 Jun 2023 11:27:03 +0000 (13:27 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 4 Jun 2023 13:54:10 +0000 (15:54 +0200)
commitb0a309dfb1b0b0b1c81cca8279852901f8be68fb
treee3bf2418784f8bd5828e123777511ba71ebcf2ce
parent1db874bef9099274a13b359e04a30504fae2081a
Enable better malloc/free checking in a few cases.

Pinpointed by gcc 13 warning:
warning: function might be candidate for attribute 'malloc' [-Wsuggest-attribute=malloc]

* gettext-tools/src/po-time.h: Include attribute.h.
(po_strftime): Mark with attribute 'malloc'.
* gettext-tools/src/write-po.h: Include attribute.h.
(make_range_description_string): Mark with attribute 'malloc'.
gettext-tools/src/po-time.h
gettext-tools/src/write-po.h