This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
[PATCH] Time-Hires: Fix declaration-after-statement error with darwin threads
authorReini Urban <rurban@cpanel.net>
Mon, 18 Apr 2016 07:38:13 +0000 (09:38 +0200)
committerJarkko Hietaniemi <jhi@iki.fi>
Sat, 23 Apr 2016 15:43:40 +0000 (11:43 -0400)
commitde1003b4553058df412757f35324ef710bc68a2e
tree6eebcd7f27a1d634cf32676e35f306ae48cf6f1b
parent7e69463d5ba4e34c2ea10a5c117a1777435209ec
[PATCH] Time-Hires: Fix declaration-after-statement error with darwin threads

rt #113856: the flag -Werror=declaration-after-statement is seemingly
not working for clang (in OS X, not yet tested elsewhere), but working
as intended for gcc.  Since the system cc for OS X is clang (via Apple),
this failure to fail has been masked.

To restate: without this patch the Time-HiRes does not build in OS X
with gcc under usethreads.
dist/Time-HiRes/HiRes.xs