Merge lp:~clint-fewbar/gearmand/fix-const-libmemcached-gcc47 into lp:gearmand/1.0

Proposed by Clint Byrum
Status: Merged
Merged at revision: 644
Proposed branch: lp:~clint-fewbar/gearmand/fix-const-libmemcached-gcc47
Merge into: lp:gearmand/1.0
Diff against target: 66 lines (+13/-4)
2 files modified
config/config.sub (+10/-1)
libtest/memcached.hpp (+3/-3)
To merge this branch: bzr merge lp:~clint-fewbar/gearmand/fix-const-libmemcached-gcc47
Reviewer Review Type Date Requested Status
Tangent Trunk Pending
Review via email: mp+124744@code.launchpad.net

Description of the change

Fix compiler errors related to dropping const qualifiers

To post a comment you must log in.
Revision history for this message
Brian Aker (brianaker) wrote :

I've pushe this into the build queue, so lets see what it does :)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'config/config.sub'
--- config/config.sub 2012-06-17 20:20:55 +0000
+++ config/config.sub 2012-09-17 17:18:21 +0000
@@ -4,7 +4,7 @@
4# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,4# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
5# 2011, 2012 Free Software Foundation, Inc.5# 2011, 2012 Free Software Foundation, Inc.
66
7timestamp='2012-02-10'7timestamp='2012-04-18'
88
9# This file is (in principle) common to ALL GNU software.9# This file is (in principle) common to ALL GNU software.
10# The presence of a machine in this file suggests that SOME GNU software10# The presence of a machine in this file suggests that SOME GNU software
@@ -225,6 +225,12 @@
225 -isc*)225 -isc*)
226 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`226 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
227 ;;227 ;;
228 -lynx*178)
229 os=-lynxos178
230 ;;
231 -lynx*5)
232 os=-lynxos5
233 ;;
228 -lynx*)234 -lynx*)
229 os=-lynxos235 os=-lynxos
230 ;;236 ;;
@@ -1537,6 +1543,9 @@
1537 c4x-* | tic4x-*)1543 c4x-* | tic4x-*)
1538 os=-coff1544 os=-coff
1539 ;;1545 ;;
1546 hexagon-*)
1547 os=-elf
1548 ;;
1540 tic54x-*)1549 tic54x-*)
1541 os=-coff1550 os=-coff
1542 ;;1551 ;;
15431552
=== modified file 'libtest/memcached.hpp'
--- libtest/memcached.hpp 2012-06-30 16:47:34 +0000
+++ libtest/memcached.hpp 2012-09-17 17:18:21 +0000
@@ -39,7 +39,7 @@
39#if defined(HAVE_LIBMEMCACHED) && HAVE_LIBMEMCACHED39#if defined(HAVE_LIBMEMCACHED) && HAVE_LIBMEMCACHED
40inline bool operator== (const memcached_st& memc, const memcached_return_t rc)40inline bool operator== (const memcached_st& memc, const memcached_return_t rc)
41{41{
42 if (memcached_last_error(&memc) == rc)42 if (memcached_last_error(const_cast<memcached_st *>(&memc)) == rc)
43 {43 {
44 return true;44 return true;
45 }45 }
@@ -49,7 +49,7 @@
4949
50inline bool operator!= (const memcached_st& memc, const memcached_return_t rc)50inline bool operator!= (const memcached_st& memc, const memcached_return_t rc)
51{51{
52 if (memcached_last_error(&memc) != rc)52 if (memcached_last_error(const_cast<memcached_st *>(&memc)) != rc)
53 {53 {
54 return true;54 return true;
55 }55 }
@@ -59,7 +59,7 @@
5959
60inline bool operator!= (const memcached_return_t rc, const memcached_st& memc)60inline bool operator!= (const memcached_return_t rc, const memcached_st& memc)
61{61{
62 if (memcached_last_error(&memc) != rc)62 if (memcached_last_error(const_cast<memcached_st *>(&memc)) != rc)
63 {63 {
64 return true;64 return true;
65 }65 }

Subscribers

People subscribed via source and target branches