]> git.ipfire.org Git - thirdparty/squid.git/commit
ESI: Fix build [-Wsingle-bit-bitfield-constant-conversion] (#1432)
authorFrancesco Chemolli <5175948+kinkie@users.noreply.github.com>
Sat, 29 Jul 2023 08:41:53 +0000 (08:41 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Sat, 29 Jul 2023 14:58:48 +0000 (14:58 +0000)
commit512b96be30ca34a300157f7ea083f31fa97c5f21
treea0dc88dae9f7c21663e9bf5e39e565a6e29c3c4f
parent8095d0c8c93d5af5f95d363d56c4e58e69eeef6d
ESI: Fix build [-Wsingle-bit-bitfield-constant-conversion] (#1432)

clang 16, the default on current fedora rawhide and centos stream 9,
complains about several ESI places:

    error: implicit truncation from 'int' to a one-bit wide bit-field
    changes value from 1 to -1
    [-Werror,-Wsingle-bit-bitfield-constant-conversion]

Turn 1-bit flags in ESI data structures from ints to unsigned ints to
avoid the problem.
src/esi/Context.h
src/esi/Esi.cc
src/esi/Include.h
src/esi/Literal.h
src/esi/Sequence.h
src/esi/VarState.h