Skip to content

Commit 56179e8

Browse files
committed
Time::HiRes.xs: clock_getres() clock_gettime() remove unused initializers
-all C branches/CPP branches in these 2 XSUBs return and set "int status"
1 parent d84d8b0 commit 56179e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dist/Time-HiRes/HiRes.xs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1433,7 +1433,7 @@ clock_gettime(clock_id = CLOCK_REALTIME)
14331433
clockid_t clock_id
14341434
PREINIT:
14351435
struct timespec ts;
1436-
int status = -1;
1436+
int status;
14371437
CODE:
14381438
# ifdef TIME_HIRES_CLOCK_GETTIME_SYSCALL
14391439
status = syscall(SYS_clock_gettime, clock_id, &ts);
@@ -1465,7 +1465,7 @@ NV
14651465
clock_getres(clock_id = CLOCK_REALTIME)
14661466
clockid_t clock_id
14671467
PREINIT:
1468-
int status = -1;
1468+
int status;
14691469
struct timespec ts;
14701470
CODE:
14711471
# ifdef TIME_HIRES_CLOCK_GETRES_SYSCALL

0 commit comments

Comments
 (0)