develooper Front page | perl.perl5.porters | Postings from April 2014

FYI: sv.c warnings from blead on OS X 10.9

Thread Next
From:
Jarkko Hietaniemi
Date:
April 27, 2014 17:53
Subject:
FYI: sv.c warnings from blead on OS X 10.9
Message ID:
535D4420.30002@iki.fi
The warnings:

sv.c:2962:17: warning: cast to 'char *' from smaller integer type 'int'
       [-Wint-to-pointer-cast]
                 V_Gconvert(SvNVX(sv), NV_DIG, 0, s);
                 ^
sv.c:55:16: note: expanded from macro 'V_Gconvert'
     char *rc = (char *)Gconvert(x,n,t,b); \
                ^
sv.c:10550:7: warning: cast to 'char *' from smaller integer type 'int'
       [-Wint-to-pointer-cast]
                     V_Gconvert(nv, (int)digits, 0, ebuf);
                     ^
sv.c:55:16: note: expanded from macro 'V_Gconvert'
     char *rc = (char *)Gconvert(x,n,t,b); \
                ^
sv.c:11408:7: warning: cast to 'char *' from smaller integer type 'int'
       [-Wint-to-pointer-cast]
                     V_Gconvert((NV)nv, (int)precis, 0, PL_efloatbuf);
                     ^
sv.c:55:16: note: expanded from macro 'V_Gconvert'
     char *rc = (char *)Gconvert(x,n,t,b); \
                ^
3 warnings generated.

I have DEBUGGING now but I think I saw the warnings also without it:

Summary of my perl5 (revision 5 version 19 subversion 11) configuration:

   Platform:
     osname=darwin, osvers=13.1.0, archname=darwin-2level
     uname='darwin vredefort-2.local 13.1.0 darwin kernel version 
13.1.0: wed apr 2 23:52:02 pdt 2014; root:xnu-2422.92.1~2release_x86_64 
x86_64 '
     config_args='-des -Dusedevel -Accflags=-DDEBUGGING -g'
     hint=recommended, useposix=true, d_sigaction=define
     useithreads=undef, usemultiplicity=undef
     use64bitint=define, use64bitall=define, uselongdouble=undef
     usemymalloc=n, bincompat5005=undef
   Compiler:
     cc='cc', ccflags ='-fno-common -DPERL_DARWIN -DDEBUGGING -g 
-fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include 
-I/opt/local/include',
     optimize='-O3',
     cppflags='-fno-common -DPERL_DARWIN -DDEBUGGING -g 
-fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include 
-I/opt/local/include'
     ccversion='', gccversion='4.2.1 Compatible Apple LLVM 5.1 
(clang-503.0.40)', gccosandvers=''
     intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=ffff
     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='env MACOSX_DEPLOYMENT_TARGET=10.3 cc', ldflags =' 
-fstack-protector -L/usr/local/lib -L/opt/local/lib'
     libpth=/usr/local/lib 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/5.1/lib 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib 
/usr/lib /opt/local/lib
     libs=-lgdbm -ldbm -ldl -lm -lutil -lc
     perllibs=-ldl -lm -lutil -lc
     libc=, so=dylib, useshrplib=false, libperl=libperl.a
     gnulibc_version=''
   Dynamic Linking:
     dlsrc=dl_dlopen.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' '
     cccdlflags=' ', lddlflags=' -bundle -undefined dynamic_lookup 
-L/usr/local/lib -L/opt/local/lib -fstack-protector'



Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About