summaryrefslogtreecommitdiff
path: root/pp_sys.c
diff options
context:
space:
mode:
authorZefram <zefram@fysh.org>2017-11-11 23:21:48 +0000
committerZefram <zefram@fysh.org>2017-11-11 23:23:03 +0000
commitb8897079199ab3165b21ca3aff78c7479842181a (patch)
tree501a6a42ed4be78df20375729f983fa33c702146 /pp_sys.c
parent2b503742ec83467c3ba4fb5b70583a4df2810a3e (diff)
downloadperl-b8897079199ab3165b21ca3aff78c7479842181a.tar.gz
suppress clang warning in inode number handling
The gcc warning was already suppressed, but clang needs a different formulation.
Diffstat (limited to 'pp_sys.c')
-rw-r--r--pp_sys.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pp_sys.c b/pp_sys.c
index f7e930f63b..7cc19de47c 100644
--- a/pp_sys.c
+++ b/pp_sys.c
@@ -3010,9 +3010,11 @@ PP(pp_stat)
*/
bool neg;
Stat_t s;
+ CLANG_DIAG_IGNORE(-Wtautological-compare);
GCC_DIAG_IGNORE(-Wtype-limits);
neg = PL_statcache.st_ino < 0;
GCC_DIAG_RESTORE;
+ CLANG_DIAG_RESTORE;
if (neg) {
s.st_ino = (IV)PL_statcache.st_ino;
if (LIKELY(s.st_ino == PL_statcache.st_ino)) {