develooper Front page | perl.perl5.porters | Postings from May 2010

[perl #75340] gcc 4.5.0 c++ warnings compiling miniperl in 5.12.1

From:
Todd Rinaldo
Date:
May 25, 2010 03:46
Subject:
[perl #75340] gcc 4.5.0 c++ warnings compiling miniperl in 5.12.1
Message ID:
rt-3.6.HEAD-4976-1274745483-769.75340-75-0@perl.org
# New Ticket Created by  Todd Rinaldo 
# Please include the string:  [perl #75340]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=75340 >


I just installed GCC 4.5.0 and am seeing the following warnings during the build process. I thought someone might want to take a look:


`sh  cflags "optimize='-Os'" malloc.o` -fPIC malloc.c
	  CCCMD =  gcc.4.5.0 -DPERL_CORE -c -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -std=c89 -Os  -Wall -ansi -W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wc++-compat 
malloc.c:883:7: warning: cast from pointer to integer of different size
malloc.c: In function 'getpages':
malloc.c:1694:14: warning: comparison between signed and unsigned integer expressions


`sh  cflags "optimize='-Os'" pp.o` -fPIC pp.c
	  CCCMD =  gcc.4.5.0 -DPERL_CORE -c -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -std=c89 -Os  -Wall -ansi -W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wc++-compat 
pp.c: In function 'Perl_pp_not':
pp.c:2488:31: warning: identifier "not" is a special operator name in C++
pp.c: In function 'Perl_pp_complement':
pp.c:2495:37: warning: identifier "compl" is a special operator name in C++


`sh  cflags "optimize='-Os'" pp_sys.o` -fPIC pp_sys.c
	  CCCMD =  gcc.4.5.0 -DPERL_CORE -c -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -std=c89 -Os  -Wall -ansi -W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wc++-compat 
pp_sys.c: In function 'Perl_pp_getpriority':
pp_sys.c:4412:5: warning: enum conversion when passing argument 1 of 'getpriority' is invalid in C++
/usr/include/sys/resource.h:94:12: note: expected '__priority_which_t' but argument is of type 'int'
pp_sys.c: In function 'Perl_pp_setpriority':
pp_sys.c:4428:5: warning: enum conversion when passing argument 1 of 'setpriority' is invalid in C++
/usr/include/sys/resource.h:98:12: note: expected '__priority_which_t' but argument is of type 'int'




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