Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.1:kernel-2.6.32
squid-beta
squid3-3.0.RC1-gcc43_warn.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File squid3-3.0.RC1-gcc43_warn.patch of Package squid-beta
--- squid-3.0.RC1/src/icp_v2.cc.orig 2007-04-30 18:56:09.000000000 +0200 +++ squid-3.0.RC1/src/icp_v2.cc 2007-11-13 11:24:11.000000000 +0100 @@ -335,7 +335,7 @@ icpGetCommonOpcode() { /* if store is rebuilding, return a UDP_MISS_NOFETCH */ - if (StoreController::store_dirs_rebuilding && opt_reload_hit_only || + if ((StoreController::store_dirs_rebuilding && opt_reload_hit_only) || hit_only_mode_until > squid_curtime) { return ICP_MISS_NOFETCH; } --- squid-3.0.RC1/src/client_side.cc.orig 2007-09-28 02:22:38.000000000 +0200 +++ squid-3.0.RC1/src/client_side.cc 2007-11-13 11:19:27.000000000 +0100 @@ -925,7 +925,7 @@ ClientSocketContext::packRange(StoreIOBu /* * paranoid check */ - assert(available.size() >= 0 && i->debt() >= 0 || i->debt() == -1); + assert((available.size() >= 0 && i->debt() >= 0) || i->debt() == -1); if (!canPackMoreRanges()) { debugs(33, 3, "clientPackRange: Returning because !canPackMoreRanges."); --- squid-3.0.RC1/src/logfile.cc.orig 2007-08-22 01:50:12.000000000 +0200 +++ squid-3.0.RC1/src/logfile.cc 2007-11-13 11:25:21.000000000 +0100 @@ -115,7 +115,7 @@ logfileOpen(const char *path, size_t buf if (delim != NULL) lf->syslog_priority |= syslog_ntoa(delim+1); - if (0 == lf->syslog_priority & PRIORITY_MASK) + if (0 == (lf->syslog_priority & PRIORITY_MASK)) lf->syslog_priority |= LOG_INFO; } } else --- squid-3.0.RC1/src/delay_pools.cc.orig 2007-04-29 00:26:37.000000000 +0200 +++ squid-3.0.RC1/src/delay_pools.cc 2007-11-13 11:21:30.000000000 +0100 @@ -152,7 +152,7 @@ protected: virtual char const *label() const = 0; - virtual unsigned int const makeKey (struct IN_ADDR &src_addr) const = 0; + virtual unsigned int makeKey (struct IN_ADDR &src_addr) const = 0; DelaySpec spec; @@ -182,7 +182,7 @@ public: protected: virtual char const *label() const {return "Individual";} - virtual unsigned int const makeKey (struct IN_ADDR &src_addr) const; + virtual unsigned int makeKey (struct IN_ADDR &src_addr) const; }; @@ -196,7 +196,7 @@ public: protected: virtual char const *label() const {return "Network";} - virtual unsigned int const makeKey (struct IN_ADDR &src_addr) const; + virtual unsigned int makeKey (struct IN_ADDR &src_addr) const; }; /* don't use remote storage for these */ @@ -239,9 +239,9 @@ protected: virtual char const *label() const {return "Individual";} - virtual unsigned int const makeKey (struct IN_ADDR &src_addr) const; + virtual unsigned int makeKey (struct IN_ADDR &src_addr) const; - unsigned char const makeHostKey (struct IN_ADDR &src_addr) const; + unsigned char makeHostKey (struct IN_ADDR &src_addr) const; DelaySpec spec; VectorMap<unsigned char, ClassCBucket> buckets; @@ -844,8 +844,7 @@ VectorPool::Id::bytesIn(int qty) } -unsigned int const - +unsigned int IndividualPool::makeKey (struct IN_ADDR &src_addr) const { unsigned int host; @@ -867,8 +866,7 @@ ClassCNetPool::operator delete (void *ad ::operator delete (address); } -unsigned int const - +unsigned int ClassCNetPool::makeKey (struct IN_ADDR &src_addr) const { unsigned int net; @@ -937,8 +935,7 @@ ClassCHostPool::keyAllocated (unsigned c return buckets.indexUsed(buckets.findKeyIndex (key)); } -unsigned char const - +unsigned char ClassCHostPool::makeHostKey (struct IN_ADDR &src_addr) const { unsigned int host; @@ -946,8 +943,7 @@ ClassCHostPool::makeHostKey (struct IN_A return host; } -unsigned int const - +unsigned int ClassCHostPool::makeKey (struct IN_ADDR &src_addr) const { unsigned int net; --- squid-3.0.RC1/src/neighbors.cc.orig 2007-04-30 18:56:09.000000000 +0200 +++ squid-3.0.RC1/src/neighbors.cc 2007-11-13 11:26:31.000000000 +0100 @@ -319,7 +319,7 @@ getRoundRobinParent(HttpRequest * reques if (p->weight == 1) { if (q && q->rr_count < p->rr_count) continue; - } else if (p->weight == 0 || q && q->rr_count < (p->rr_count / p->weight)) { + } else if (p->weight == 0 || (q && q->rr_count < (p->rr_count / p->weight))) { continue; } --- squid-3.0.RC1/lib/libTrie/include/TrieCharTransform.h.orig 2003-07-14 16:15:53.000000000 +0200 +++ squid-3.0.RC1/lib/libTrie/include/TrieCharTransform.h 2007-11-13 11:09:06.000000000 +0100 @@ -50,12 +50,12 @@ class TrieCharTransform public: virtual ~TrieCharTransform() {} - virtual char const operator () (char const) = 0; + virtual char operator () (char const) = 0; }; class TrieCaseless : public TrieCharTransform { - virtual char const operator () (char const aChar) {return tolower(aChar);} + virtual char operator () (char const aChar) {return tolower(aChar);} }; #endif /* __cplusplus */ --- squid-3.0.RC1/lib/MemPool.cc.orig 2007-09-20 13:26:22.000000000 +0200 +++ squid-3.0.RC1/lib/MemPool.cc 2007-11-13 11:16:21.000000000 +0100 @@ -159,7 +159,7 @@ MemPools::setIdleLimit(size_t new_idle_l mem_idle_limit = new_idle_limit; } -size_t const +size_t MemPools::idleLimit() const { return mem_idle_limit; --- squid-3.0.RC1/include/MemPool.h.orig 2007-05-22 18:40:05.000000000 +0200 +++ squid-3.0.RC1/include/MemPool.h 2007-11-13 11:34:01.000000000 +0100 @@ -85,7 +85,7 @@ class MemPools MemImplementingAllocator * create(const char *label, size_t obj_size); MemImplementingAllocator * create(const char *label, size_t obj_size, bool const chunked); void setIdleLimit(size_t new_idle_limit); - size_t const idleLimit() const; + size_t idleLimit() const; void clean(time_t maxage); void setDefaultPoolChunking(bool const &); MemImplementingAllocator *pools; --- squid-3.0.RC1/src/helper.cc.orig 2007-08-27 14:50:43.000000000 +0200 +++ squid-3.0.RC1/src/helper.cc 2007-11-13 12:18:02.829979484 +0100 @@ -77,7 +77,7 @@ char *progname; char *shortname; char *procname; - const char *args[HELPER_MAX_ARGS]; + const char *args[HELPER_MAX_ARGS+1]; // save space for a NULL terminator char fd_note_buf[FD_DESC_SZ]; helper_server *srv; int nargs = 0; @@ -180,7 +180,7 @@ helperStatefulOpenServers(statefulhelper * hlp) { char *shortname; - const char *args[HELPER_MAX_ARGS]; + const char *args[HELPER_MAX_ARGS+1]; // save space for a NULL terminator char fd_note_buf[FD_DESC_SZ]; int nargs = 0;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor