make clean
make miniperl
- make all OPTIMIZE=-DCHECK_FORMAT >& make.log
+ make all OPTIMIZE='-DCHECK_FORMAT -Wformat' >& make.log
=item *
goto ENCODE_END;
}
- while (code = do_encode(dir, s, &slen, d, dlen, &dlen, !check))
+ while( (code = do_encode(dir, s, &slen, d, dlen, &dlen, !check)) )
{
SvCUR_set(dst, dlen+ddone);
SvPOK_only(dst);
else {
if (check & ENCODE_DIE_ON_ERR){
Perl_croak(aTHX_ ERR_DECODE_NOMAP,
- PTR2UV(enc->name[0]), (U8)s[slen]);
+ enc->name[0], (UV)s[slen]);
return &PL_sv_undef; /* never reaches but be safe */
}
if (check & ENCODE_WARN_ON_ERR){
Perl_warner(
aTHX_ packWARN(WARN_UTF8),
ERR_DECODE_NOMAP,
- PTR2UV(enc->name[0]), (U8)s[slen]);
+ enc->name[0], (UV)s[slen]);
}
if (check & ENCODE_RETURN_ON_ERR){
goto ENCODE_SET_SRC;
if (!issurrogate(ord)){
if (ucs2) {
if (check) {
- croak("%s:code point \"\\x{"UVxf"}\" too high",
+ croak("%s:code point \"\\x{%"UVxf"}\" too high",
SvPV_nolen(
*hv_fetch((HV *)SvRV(obj),"Name",4,0))
,ord);
#define dSTCXT_PTR(T,name) \
T name = ((perinterp_sv && SvIOK(perinterp_sv) && SvIVX(perinterp_sv) \
- ? (T)SvPVX(SvRV((SV*)SvIVX(perinterp_sv))) : (T) 0))
+ ? (T)SvPVX(SvRV(INT2PTR(SV*,SvIVX(perinterp_sv)))) : (T) 0))
#define dSTCXT \
dSTCXT_SV; \
dSTCXT_PTR(stcxt_t *, cxt)
struct itimerval oldit;
PPCODE:
if (seconds < 0.0 || interval < 0.0)
- croak("Time::HiRes::setitimer(%"IVdf", %"NVgf", %"NVgf"): negative time not invented yet", which, seconds, interval);
+ croak("Time::HiRes::setitimer(%"IVdf", %"NVgf", %"NVgf"): negative time not invented yet", (IV)which, seconds, interval);
newit.it_value.tv_sec = seconds;
newit.it_value.tv_usec =
(seconds - (NV)newit.it_value.tv_sec) * 1000000.0;
/* Try shared SV as 1st choice */
if (!data && ssv && SvTYPE(ssv) >= SVt_PVMG) {
- if (mg = mg_find(ssv, PERL_MAGIC_ext)) {
+ if( (mg = mg_find(ssv, PERL_MAGIC_ext)) ){
data = (shared_sv *) mg->mg_ptr;
}
}
shared_sv *shared;
if(SvROK(ref))
ref = SvRV(ref);
- if (shared = Perl_sharedsv_find(aTHX_ ref)) {
+ if( (shared = Perl_sharedsv_find(aTHX_ ref)) ){
ST(0) = sv_2mortal(newSViv(PTR2IV(shared)));
XSRETURN(1);
}
shared_sv *shared;
if(SvROK(ref))
ref = SvRV(ref);
- if (shared = Perl_sharedsv_find(aTHX_ ref)) {
+ if( (shared = Perl_sharedsv_find(aTHX_ ref)) ){
if (SHAREDSvPTR(shared)) {
ST(0) = sv_2mortal(newSViv(SvREFCNT(SHAREDSvPTR(shared))));
XSRETURN(1);
}
else {
- Perl_warn(aTHX_ "%_ s=%p has no shared SV",ST(0),shared);
+ Perl_warn(aTHX_ "%" SVf " s=%p has no shared SV",ST(0),shared);
}
}
else {
- Perl_warn(aTHX_ "%_ is not shared",ST(0));
+ Perl_warn(aTHX_ "%" SVf " is not shared",ST(0));
}
XSRETURN_UNDEF;
int veto_cleanup = 0;
MUTEX_LOCK(&create_destruct_mutex);
if (aTHX == PL_curinterp && active_threads != 1) {
- Perl_warn(aTHX_ "Cleanup skipped %d active threads", active_threads);
+ Perl_warn(aTHX_ "Cleanup skipped %" IVdf " active threads",
+ (IV)active_threads);
veto_cleanup = 1;
}
MUTEX_UNLOCK(&create_destruct_mutex);
}
PUTBACK;
if (SvTRUE(ERRSV)) {
- Perl_warn(aTHX_ "Died:%_",ERRSV);
+ Perl_warn(aTHX_ "Died:%" SVf,ERRSV);
}
FREETMPS;
LEAVE;
}
else
{
- Perl_warn(aTHX_ "CLONE %_",obj);
+ Perl_warn(aTHX_ "CLONE %" SVf,obj);
}
}