diff options
-rw-r--r-- | doio.c | 2 | ||||
-rw-r--r-- | op.c | 2 | ||||
-rw-r--r-- | perlio.c | 4 | ||||
-rw-r--r-- | thread.h | 2 | ||||
-rw-r--r-- | util.c | 2 |
5 files changed, 7 insertions, 5 deletions
@@ -1395,7 +1395,7 @@ S_exec_failed(pTHX_ const char *cmd, int fd, int do_report) Perl_warner(aTHX_ packWARN(WARN_EXEC), "Can't exec \"%s\": %s", cmd, Strerror(e)); if (do_report) { - PerlLIO_write(fd, (void*)&e, sizeof(int)); + (void)PerlLIO_write(fd, (void*)&e, sizeof(int)); PerlLIO_close(fd); } } @@ -1964,6 +1964,8 @@ S_finalize_op(pTHX_ OP* o) } lexname = NULL; /* just to silence compiler warnings */ + fields = NULL; /* just to silence compiler warnings */ + check_fields = rop && (lexname = *av_fetch(PL_comppad_name, rop->op_targ, TRUE), @@ -463,7 +463,7 @@ PerlIO_debug(const char *fmt, ...) char buffer[1024]; const STRLEN len1 = my_snprintf(buffer, sizeof(buffer), "%.40s:%" IVdf " ", s ? s : "(none)", (IV) CopLINE(PL_curcop)); const STRLEN len2 = my_vsnprintf(buffer + len1, sizeof(buffer) - len1, fmt, ap); - PerlLIO_write(PL_perlio_debug_fd, buffer, len1 + len2); + (void)PerlLIO_write(PL_perlio_debug_fd, buffer, len1 + len2); #else const char *s = CopFILE(PL_curcop); STRLEN len; @@ -472,7 +472,7 @@ PerlIO_debug(const char *fmt, ...) Perl_sv_vcatpvf(aTHX_ sv, fmt, &ap); s = SvPV_const(sv, len); - PerlLIO_write(PL_perlio_debug_fd, s, len); + (void)PerlLIO_write(PL_perlio_debug_fd, s, len); SvREFCNT_dec(sv); #endif } @@ -336,7 +336,7 @@ # define ALLOC_THREAD_KEY \ STMT_START { \ if (pthread_key_create(&PL_thr_key, 0)) { \ - write(2, STR_WITH_LEN("panic: pthread_key_create failed\n")); \ + (void)write(2, STR_WITH_LEN("panic: pthread_key_create failed\n")); \ exit(1); \ } \ } STMT_END @@ -1597,7 +1597,7 @@ Perl_croak_no_mem() dTHX; /* Can't use PerlIO to write as it allocates memory */ - PerlLIO_write(PerlIO_fileno(Perl_error_log), + (void)PerlLIO_write(PerlIO_fileno(Perl_error_log), PL_no_mem, sizeof(PL_no_mem)-1); my_exit(1); } |