[PATCH] util/zlib-extra: de-inline gzerror_str
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Mon Apr 27 09:54:17 PDT 2020
On Mon 2020-04-27 09:28:08 -0300, David Bremner wrote:
> It turns out the behaviour of inline functions in C header files is
> not a good idea, and can cause linking problems if the compiler
> decides not to inline them. In principle this is solvable by using a
> "static inline" declaration, but this potentially makes a copy in
> every compilation unit. Since we don't actually care about the
> performance of this function, just use a non-inline function.
LGTM. No need for premature optimization in the error case anyway.
--dkg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 227 bytes
Desc: not available
URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20200427/05b0639c/attachment.sig>
More information about the notmuch
mailing list