Subject: | Doesn't compile with Perl 5.24.1 on OS/X |
cc -c -fno-common -DPERL_DARWIN -O2 -W -Wformat=2 -Wswitch -Wshadow -Wwrite-strings -Wuninitialized -Wall -pipe -mtune=native -march=native -fno-strict-aliasing -fstack-protector-strong -I/usr/local/include -I/opt/local/include -Werror=declaration-after-statement -Wextra -Wc++-compat -Wthread-safety -O3 -DVERSION=\"1.9733\" -DXS_VERSION=\"1.9733\" "-I../.." -DTIME_HIRES_NANOSLEEP -DTIME_HIRES_CLOCK_GETTIME -DTIME_HIRES_CLOCK_GETRES -DTIME_HIRES_CLOCK_NANOSLEEP -DTIME_HIRES_CLOCK -DTIME_HIRES_STAT=1 -DATLEASTFIVEOHOHFIVE HiRes.c
In file included from HiRes.xs:19:
In file included from ../../perl.h:5859:
../../inline.h:526:5: warning: declaration shadows a local variable [-Wshadow]
CX_POP_SAVEARRAY(cx);
^
../../cop.h:612:13: note: expanded from macro 'CX_POP_SAVEARRAY'
AV *av = GvAV(PL_defgv); \
^
../../inline.h:518:9: note: previous declaration is here
AV *av;
^
HiRes.c:2151:14: warning: declaration shadows a local variable [-Wshadow]
CV * cv;
^
HiRes.c:2126:1: note: previous declaration is here
XS_EXTERNAL(boot_Time__HiRes)
^
../../XSUB.h:142:51: note: expanded from macro 'XS_EXTERNAL'
# define XS_EXTERNAL(name) void name(pTHX_ CV* cv __attribute__unused__)
^
HiRes.xs:945:15: error: use of undeclared identifier 'darwin_time_mutex'
MUTEX_INIT(&darwin_time_mutex);
^
2 warnings and 1 error generated.
make[1]: *** [HiRes.o] Error 1