]> git.cworth.org Git - notmuch/commit
util/zlib-extra: de-inline gzerror_str
authorDavid Bremner <david@tethera.net>
Mon, 27 Apr 2020 12:24:22 +0000 (09:24 -0300)
committerDavid Bremner <david@tethera.net>
Tue, 28 Apr 2020 13:35:44 +0000 (10:35 -0300)
commitad9c2e91a012920bebfe70bc472d44678abc3259
treefe61c4e6b18594cbe4d9734dc31d0d21545b325f
parent11ac932a4503872c19987b843d58513c4b9ef76f
util/zlib-extra: de-inline gzerror_str

It turns out that putting 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.
util/zlib-extra.c
util/zlib-extra.h