]> git.ipfire.org Git - thirdparty/squid.git/commit
Fix FreeBSD 14 build (#975)
authorDavid CARLIER <devnexen@gmail.com>
Mon, 7 Feb 2022 00:35:28 +0000 (00:35 +0000)
committerAmos Jeffries <yadij@users.noreply.github.com>
Tue, 8 Feb 2022 18:41:44 +0000 (07:41 +1300)
commitcf08b9f9bdf6755c33ea1fd72efba11d27058b9f
tree6cb4bb9c1f425b0df3d5aac9d8389488e2e09ee1
parent700de16195952cb5c48f520c92c1c7e48c4cf7ae
Fix FreeBSD 14 build (#975)

FreeBSD 14 defines 3-parameter CPU_AND() macro as a `do {} while` loop.
Our (void) in front of that loop creates a syntax error.

    CpuAffinitySet.cc:41:16: error: expected expression
    (void) CPU_AND(&cpuSet, &cpuSet, &theOrigCpuSet);

That (void) was added in commit 7ec6d51 to "remove GNU-specific syntax",
but we cannot tell what specific problem that 10-year old change solved.
Known 3-parameter CPU_AND(3) documentation says the call returns void.
src/CpuAffinitySet.cc