develooper Front page | perl.perl5.porters | Postings from July 2014

suggest cherrypicking also the PERL_UNUSED_RESULT for 5.20.1

Thread Next
From:
Jarkko Hietaniemi
Date:
July 19, 2014 22:02
Subject:
suggest cherrypicking also the PERL_UNUSED_RESULT for 5.20.1
Message ID:
53CAEA75.8030701@iki.fi
Since I find the below error (in OS X) so unseemly I would like to see 
the following cherry-picked:

ffea512f3e5e645945e337a9aa70a304cd695df3 Add PERL_UNUSED_RESULT()
b469f1e0fc5f0ac882161e627a1255ee11e67c37 Use PERL_UNUSED_RESULT.

The latter is a little more dubious for maint since it expands the use, 
but it makes the description and implementation better.

-- unseemly --

sv.c:3001:17: warning: cast to 'char *' from smaller integer type 'int' 
[-Wint-to-pointer-cast]
                 V_Gconvert(SvNVX(sv), NV_DIG, 0, s);
                 ^
sv.c:118:16: note: expanded from macro 'V_Gconvert'
     char *rc = (char *)Gconvert(x,n,t,b); \
                ^

sv.c:10699:7: warning: cast to 'char *' from smaller integer type 'int' 
[-Wint-to-pointer-cast]
                     V_Gconvert(nv, (int)digits, 0, ebuf);
                     ^
sv.c:118:16: note: expanded from macro 'V_Gconvert'
     char *rc = (char *)Gconvert(x,n,t,b); \
                ^
sv.c:11557:7: warning: cast to 'char *' from smaller integer type 'int' 
[-Wint-to-pointer-cast]
                     V_Gconvert((NV)nv, (int)precis, 0, PL_efloatbuf);
                     ^
sv.c:118:16: note: expanded from macro 'V_Gconvert'
     char *rc = (char *)Gconvert(x,n,t,b); \


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About