From: rousskov <> Date: Wed, 13 Feb 2008 13:04:25 +0000 (+0000) Subject: GCC 3.4.2 does not like cbdataReference() calls with unused results. X-Git-Tag: BASIC_TPROXY4~88 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1b22d85da706330086a9eb05142f205e1cb7f5a2;p=thirdparty%2Fsquid.git GCC 3.4.2 does not like cbdataReference() calls with unused results. --- diff --git a/src/ICAP/AsyncJob.cc b/src/ICAP/AsyncJob.cc index eff9d0d9c5..d70eb77b2d 100644 --- a/src/ICAP/AsyncJob.cc +++ b/src/ICAP/AsyncJob.cc @@ -171,9 +171,8 @@ JobDialer::JobDialer(AsyncJob *aJob): job(aJob), lock(NULL) } JobDialer::JobDialer(const JobDialer &d): CallDialer(d), - job(d.job), lock(d.lock) + job(d.job), lock(cbdataReference(d.lock)) { - cbdataReference(lock); } JobDialer::~JobDialer(){