Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion r1425 committed - fix unused result compiler warnings
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
perl-devel-nytp...@googlecode.com  
View profile  
 More options Aug 10 2012, 7:33 am
From: perl-devel-nytp...@googlecode.com
Date: Fri, 10 Aug 2012 11:33:12 +0000
Local: Fri, Aug 10 2012 7:33 am
Subject: [perl-devel-nytprof] r1425 committed - fix unused result compiler warnings
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);


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.