]> git.ipfire.org Git - thirdparty/squid.git/commit
Fix GCC v13 LTO build [-Walloc-size-larger-than=] (#1929)
authorJulien <juju4@users.noreply.github.com>
Sun, 23 Feb 2025 20:06:06 +0000 (20:06 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Sun, 23 Feb 2025 23:16:09 +0000 (23:16 +0000)
commit91d1cfb1807db277608881951a9a0e71e32cdf83
treeba090ba096d8c7bfb284f313b6961c5a5063d0e1
parent28a2ea0dedcbb43566c18e1d71b0f5bbff2c8640
Fix GCC v13 LTO build [-Walloc-size-larger-than=] (#1929)

    store/Disks.cc:690: error: argument 1 value 18446744073709551615
        exceeds maximum object size 9223372036854775807
        [-Werror=alloc-size-larger-than=]
    const auto tmp = new SwapDir::Pointer[swap->n_allocated];

    pconn.cc:43:53: error: argument 1 value 18446744073709551615 ...
    theList_ = new Comm::ConnectionPointer[capacity_];

Tested on Ubuntu 24.04 and GCC v13.2.0.
23 files changed:
CONTRIBUTORS
src/DiskIO/DiskThreads/DiskThreads.h
src/DiskIO/DiskThreads/aiops.cc
src/DiskIO/DiskThreads/async_io.cc
src/SquidConfig.h
src/auth/SchemeConfig.cc
src/auth/SchemeConfig.h
src/auth/basic/Config.cc
src/auth/basic/Config.h
src/auth/digest/Config.cc
src/auth/digest/Config.h
src/fs/rock/RockSwapDir.cc
src/fs/ufs/UFSSwapDir.cc
src/fs/ufs/UFSSwapDir.h
src/pconn.cc
src/pconn.h
src/store.cc
src/store/Disks.cc
src/store/Disks.h
src/store_rebuild.cc
src/tests/testStoreController.cc
src/tests/testStoreHashIndex.cc
src/unlinkd.cc