Subject: | Compilation warnings (unused variables) |
When building DateTime on perl5.8.8 linux, there are various warnings:
CPAN.pm: Going to build D/DR/DROLSKY/DateTime-0.66.tar.gz
Creating new 'MYMETA.yml' with configuration results
Creating new 'Build' script for 'DateTime' version '0.66'
CPAN: Module::Build loaded ok (v0.3603)
Building DateTime
gcc -Ic -I/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE
-DXS_VERSION="0.66" -DVERSION="0.66" -fPIC -c -D_REENTRANT -D_GNU_SOURCE
-fno-strict-aliasing -pipe -Wdeclaration-after-statement
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-I/usr/include/gdbm -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
-fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32
-march=i386 -mtune=generic -fasynchronous-unwind-tables -o
lib/DateTime.o lib/DateTime.c
lib/DateTime.c: In function �XS_DateTime__rd2ymd�:
lib/DateTime.c:148: warning: unused variable �self�
lib/DateTime.c: In function �XS_DateTime__ymd2rd�:
lib/DateTime.c:241: warning: unused variable �self�
lib/DateTime.c: In function �XS_DateTime__seconds_as_components�:
lib/DateTime.c:292: warning: unused variable �self�
lib/DateTime.c: In function �XS_DateTime__normalize_tai_seconds�:
lib/DateTime.c:364: warning: unused variable �self�
lib/DateTime.c: In function �XS_DateTime__normalize_leap_seconds�:
lib/DateTime.c:405: warning: unused variable �self�
lib/DateTime.c: In function �XS_DateTime__time_as_seconds�:
lib/DateTime.c:453: warning: unused variable �self�
lib/DateTime.c: In function �XS_DateTime__is_leap_year�:
lib/DateTime.c:480: warning: unused variable �self�
lib/DateTime.c: In function �XS_DateTime__day_length�:
lib/DateTime.c:505: warning: unused variable �self�
lib/DateTime.c: In function �XS_DateTime__day_has_leap_second�:
lib/DateTime.c:533: warning: unused variable �self�
lib/DateTime.c: In function �XS_DateTime__accumulated_leap_seconds�:
lib/DateTime.c:561: warning: unused variable �self�
ExtUtils::Mkbootstrap::Mkbootstrap('blib/arch/auto/DateTime/DateTime.bs')
gcc -shared -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386
-mtune=generic -fasynchronous-unwind-tables -L/usr/local/lib -o
blib/arch/auto/DateTime/DateTime.so lib/DateTime.o
DROLSKY/DateTime-0.66.tar.gz
./Build -- OK
All unit tests pass.