diff options
author | Yves Orton <demerphq@gmail.com> | 2023-02-25 14:05:45 +0100 |
---|---|---|
committer | Yves Orton <demerphq@gmail.com> | 2023-02-26 00:31:44 +0800 |
commit | d2de71604bdb603adc11accc37b82b60532f4688 (patch) | |
tree | 815a8b635dad43ef4d6d5f562b60a9f6c8b9ca1f /dist | |
parent | 72aa2f60a2e32d240f312d3585bd48877dffe36f (diff) | |
download | perl-d2de71604bdb603adc11accc37b82b60532f4688.tar.gz |
dist/Time-HiRes - silence ppport warning
Silences the following warning:
In file included from HiRes.xs:23:
./ppport.h:14832:1: warning: unused function 'DPPP_my_ck_warner' [-Wunused-function]
DPPP_(my_ck_warner)(pTHX_ U32 err, const char *pat, ...)
^
./ppport.h:11568:21: note: expanded from macro 'DPPP_'
#define DPPP_(name) DPPP_CAT2(DPPP_NAMESPACE, name)
^
./ppport.h:11567:24: note: expanded from macro 'DPPP_CAT2'
#define DPPP_CAT2(x,y) CAT2(x,y)
^
../../config.h:1387:19: note: expanded from macro 'CAT2'
#define CAT2(a,b) PeRl_CaTiFy(a,b)
^
../../config.h:1385:27: note: expanded from macro 'PeRl_CaTiFy'
#define PeRl_CaTiFy(a, b) a ## b
^
<scratch space>:34:1: note: expanded from here
DPPP_my_ck_warner
^
1 warning generated.
Diffstat (limited to 'dist')
-rw-r--r-- | dist/Time-HiRes/HiRes.pm | 2 | ||||
-rw-r--r-- | dist/Time-HiRes/HiRes.xs | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/dist/Time-HiRes/HiRes.pm b/dist/Time-HiRes/HiRes.pm index 60aa873ae5..22660cb616 100644 --- a/dist/Time-HiRes/HiRes.pm +++ b/dist/Time-HiRes/HiRes.pm @@ -50,7 +50,7 @@ our @EXPORT_OK = qw (usleep sleep ualarm alarm gettimeofday time tv_interval stat lstat utime ); -our $VERSION = '1.9773'; +our $VERSION = '1.9774'; our $XS_VERSION = $VERSION; $VERSION = eval $VERSION; diff --git a/dist/Time-HiRes/HiRes.xs b/dist/Time-HiRes/HiRes.xs index 0944194bb4..e108848536 100644 --- a/dist/Time-HiRes/HiRes.xs +++ b/dist/Time-HiRes/HiRes.xs @@ -19,7 +19,9 @@ extern "C" { #include "perl.h" #include "XSUB.h" #include "reentr.h" +#if !defined(IS_SAFE_PATHNAME) && defined(TIME_HIRES_UTIME) && defined(HAS_UTIMENSAT) #define NEED_ck_warner +#endif #include "ppport.h" #if defined(__CYGWIN__) && defined(HAS_W32API_WINDOWS_H) # include <w32api/windows.h> |