Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Memcached-libmemcached CPAN distribution.

Report information
The Basics
Id: 103069
Status: new
Priority: 0/
Queue: Memcached-libmemcached

People
Owner: Nobody in particular
Requestors: zefram [...] fysh.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: const warnings in XS compilation
Date: Tue, 24 Mar 2015 16:59:46 +0000
To: bug-Memcached-libmemcached [...] rt.cpan.org
From: Zefram <zefram [...] fysh.org>
These warnings come up during compilation of the XS code for Memcached-libmemcached: cc -c -I/opt/perl-5.20.2/cpan/build/Memcached-libmemcached-1.001702-Kt16ao/src_inst/include -fwrapv -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -ggdb -O3 -fbranch-target-load-optimize -fgcse-las -fgcse-sm -fipa-pta -floop-block -floop-interchange -floop-strip-mine -fmodulo-sched -fomit-frame-pointer -freorder-blocks-and-partition -fsched-spec-load -fsched-spec-load-dangerous -ftree-loop-distribution -DVERSION=\"1.001702\" -DXS_VERSION=\"1.001702\" -fPIC -O3 -pipe "-I/opt/perl-5.20.2/lib/5.20.2/x86_64-linux-ld/CORE" -W -Wall -Wpointer-arith -Wbad-function-cast -Wno-comment -Wno-sign-compare -Wno-cast-qual -Wmissing-noreturn -Wno-unused-parameter libmemcached.c libmemcached.c: In function 'XS_Memcached__libmemcached_memcached_create': libmemcached.c:538:27: warning: assignment discards 'const' qualifier from pointer target type [enabled by default] libmemcached.c: In function 'XS_Memcached__libmemcached_memcached_clone': libmemcached.c:627:27: warning: assignment discards 'const' qualifier from pointer target type [enabled by default] libmemcached.c: In function 'XS_Memcached__libmemcached_memcached_strerror': libmemcached.c:3924:9: warning: assignment discards 'const' qualifier from pointer target type [enabled by default] Attached patch fixes, at least for recent Perls. I haven't checked compatibility to very old Perls; constness of some API parameters has changed over time. -zefram

Message body is not shown because sender requested not to inline it.