]> git.ipfire.org Git - thirdparty/squid.git/commit
Silence GnuRegex warnings on gcc 12.1 (#1096)
authorFrancesco Chemolli <kinkie@squid-cache.org>
Fri, 22 Jul 2022 23:12:33 +0000 (23:12 +0000)
committerAmos Jeffries <yadij@users.noreply.github.com>
Mon, 22 Aug 2022 15:09:12 +0000 (03:09 +1200)
commitdde32ed532c848f59ee122cf1d70fbbd597c2aa1
tree5ad2106827f538f14deaf7a4e61e51e8e2eba9a5
parenta137484f5883cf57b9793cd3df0e84e10bcb4e2e
Silence GnuRegex warnings on gcc 12.1 (#1096)

GnuRegex does pointer magic that gcc 12.1 doesn't like.

    compat/GnuRegex.c: error: array subscript -1 is outside array bounds
    of 'const char[]' [-Werror=array-bounds]

    compat/GnuRegex.c: error: pointer may be used after 'realloc'
    [-Werror=use-after-free]

A long term fix is to unship GnuRegex which is an old
snapshot and is not maintained.
compat/GnuRegex.c