Front page | perl.perl5.porters |
Postings from April 2010
[perl #74750] fix long int cast warning in toke.c "Deprecated character" warn
Thread Next
From:
Richard Soderberg
Date:
April 29, 2010 01:58
Subject:
[perl #74750] fix long int cast warning in toke.c "Deprecated character" warn
Message ID:
rt-3.6.HEAD-27388-1272491884-770.74750-75-0@perl.org
# New Ticket Created by Richard Soderberg
# Please include the string: [perl #74750]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=74750 >
commit e201a6b870e790ea5550be3cf4dc3c0b4505c406
Author: Richard Soderberg <rs@topsy.com>
Date: Wed Apr 28 14:30:02 2010 -0700
fix compilation warning on 64-bit centos 5.2 gcc 4.1.2-42.
subtracting two char* pointers returns a ptr_diff_t which is "long int",
but sv.c:Perl_sv_vcatpvfn:tryasterisk says va_arg(*args, int),
so explicitly cast the ptr_diff_t to int to silence the warning.
patch vs. blead 316e9929be27149b8ce6038c5882d214010922b5 with ./Configure
-des -Dusedevel
perl -V:
Summary of my perl5 (revision 5 version 13 subversion 0) configuration:
Platform:
osname=linux, osvers=2.6.18-92.1.22.el5, archname=x86_64-linux
uname='linux 2.6.18-92.1.22.el5 #1 smp tue dec 16 11:57:43 est 2008
x86_64 x86_64 x86_64 gnulinux '
config_args='-des -Dusedevel'
hint=recommended, useposix=true, d_sigaction=define
useithreads=undef, usemultiplicity=undef
useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
use64bitint=define, use64bitall=define, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-fno-strict-aliasing -pipe -fstack-protector
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
optimize='-O2',
cppflags='-fno-strict-aliasing -pipe -fstack-protector
-I/usr/local/include'
ccversion='', gccversion='4.1.2 20071124 (Red Hat 4.1.2-42)',
gccosandvers=''
intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='cc', ldflags =' -fstack-protector -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib /lib64 /usr/lib64 /usr/local/lib64
libs=-lnsl -lgdbm -ldl -lm -lcrypt -lutil -lc
perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
libc=/lib/libc-2.5.so, so=so, useshrplib=false, libperl=libperl.a
gnulibc_version='2.5'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
cccdlflags='-fPIC', lddlflags='-shared -O2 -L/usr/local/lib
-fstack-protector'
Characteristics of this binary (from libperl):
Compile-time options: PERL_DONT_CREATE_GVSV PERL_MALLOC_WRAP
PERL_USE_DEVEL
USE_64_BIT_ALL USE_64_BIT_INT USE_LARGE_FILES
USE_PERLIO USE_PERL_ATOF
- R.
Thread Next
-
[perl #74750] fix long int cast warning in toke.c "Deprecated character" warn
by Richard Soderberg