Message from discussion
r1425 committed - fix unused result compiler warnings
Received: by 10.236.133.146 with SMTP id q18mr1450117yhi.12.1344598393454;
Fri, 10 Aug 2012 04:33:13 -0700 (PDT)
X-BeenThere: develnytprof-dev@googlegroups.com
Received: by 10.236.154.170 with SMTP id h30ls6204715yhk.7.gmail; Fri, 10 Aug
2012 04:33:12 -0700 (PDT)
Received: by 10.101.17.17 with SMTP id u17mr354567ani.6.1344598392761;
Fri, 10 Aug 2012 04:33:12 -0700 (PDT)
Received: by 10.101.17.17 with SMTP id u17mr354566ani.6.1344598392745;
Fri, 10 Aug 2012 04:33:12 -0700 (PDT)
Return-Path: <3ePEkUBIOAHUiXke-WXoXe-grmikhYZhhZeXVhWX....@codesite.bounces.google.com>
Received: from mail-yw0-f76.google.com (mail-yw0-f76.google.com [209.85.213.76])
by gmr-mx.google.com with ESMTPS id i27si1027503yhe.4.2012.08.10.04.33.12
(version=TLSv1/SSLv3 cipher=OTHER);
Fri, 10 Aug 2012 04:33:12 -0700 (PDT)
Received-SPF: pass (google.com: domain of 3ePEkUBIOAHUiXke-WXoXe-grmikhYZhhZeXVhWX....@codesite.bounces.google.com designates 209.85.213.76 as permitted sender) client-ip=209.85.213.76;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of 3ePEkUBIOAHUiXke-WXoXe-grmikhYZhhZeXVhWX....@codesite.bounces.google.com designates 209.85.213.76 as permitted sender) smtp.mail=3ePEkUBIOAHUiXke-WXoXe-grmikhYZhhZeXVhWX....@codesite.bounces.google.com
Received: by yhfq11 with SMTP id q11so423831yhf.5
for <develnytprof-dev@googlegroups.com>; Fri, 10 Aug 2012 04:33:12 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.224.17.135 with SMTP id s7mr2647147qaa.1.1344598392663; Fri,
10 Aug 2012 04:33:12 -0700 (PDT)
X-Generated-By: Google Code
Message-ID: <bcaec51b9cc78f6fb004c6e7b510@google.com>
Date: Fri, 10 Aug 2012 11:33:12 +0000
Subject: [perl-devel-nytprof] r1425 committed - fix unused result compiler warnings
From: perl-devel-nytp...@googlecode.com
To: develnytprof-dev@googlegroups.com
Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes
Revision: 1425
Author: tim.bu...@gmail.com
Date: Fri Aug 10 04:32:58 2012
Log: fix unused result compiler warnings
http://code.google.com/p/perl-devel-nytprof/source/detail?r=1425
Modified:
/trunk/NYTProf.xs
=======================================
--- /trunk/NYTProf.xs Wed Jun 27 06:13:42 2012
+++ /trunk/NYTProf.xs Fri Aug 10 04:32:58 2012
@@ -1825,7 +1825,7 @@
DBsv = hv_delete(GvHV(PL_DBsub), SvPVX(fullnamesv), (I32)total_len, 1);
if (DBsv && parse_DBsub_value(aTHX_ DBsv, NULL, &line, NULL,
SvPVX(fullnamesv))) {
- SvREFCNT_inc(DBsv); /* was made mortal by hv_delete */
+ (void)SvREFCNT_inc(DBsv); /* was made mortal by hv_delete */
sv_catpvf(fullnamesv, "@%u", (unsigned int)line);
if (hv_fetch(GvHV(PL_DBsub), SvPV_nolen(fullnamesv),
(I32)SvCUR(fullnamesv), 0)) {
static unsigned int dup_begin_seqn;
@@ -2551,9 +2551,9 @@
/* XXX if the goto op or goto'd xsub croaks then this'll leak */
/* we can't mortalize here because we're about to leave scope */
- SvREFCNT_inc(goto_subr_entry.caller_subnam_sv);
- SvREFCNT_inc(goto_subr_entry.called_subnam_sv);
- SvREFCNT_inc(sub_sv);
+ (void)SvREFCNT_inc(goto_subr_entry.caller_subnam_sv);
+ (void)SvREFCNT_inc(goto_subr_entry.called_subnam_sv);
+ (void)SvREFCNT_inc(sub_sv);
/* grab the CvSTART of the called sub since it's available */
called_cv = (CV*)SvRV(sub_sv);