Skip Menu |

This queue is for tickets about the DBI CPAN distribution.

Report information
The Basics
Id: 27119
Status: resolved
Priority: 0/
Queue: DBI

People
Owner: Nobody in particular
Requestors: jdhedden [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Unimportant
Broken in: 1.56
Fixed in: (no value)



Subject: [PATCH] Fix compiler warning on unused var
'make' gives the following compiler warning: DBI.c: In function `XS_DBI_dbi_profile_merge_nodes': DBI.c:4366: warning: unused variable `ix' Attached patch fixes it.
Subject: dbi.patch
diff -urN DBI-1.56/DBI.xs DBI-patched/DBI.xs --- DBI-1.56/DBI.xs 2007-05-13 17:54:06.000000000 -0400 +++ DBI-patched/DBI.xs 2007-05-14 08:58:08.000000000 -0400 @@ -4172,10 +4172,12 @@ dbi_profile_merge = 1 CODE: { - if (!SvROK(dest) || SvTYPE(SvRV(dest)) != SVt_PVAV) + if (!SvROK(dest) || SvTYPE(SvRV(dest)) != SVt_PVAV) { + (void)cv; /* avoid 'unused variable' warning' */ + (void)ix; croak("dbi_profile_merge_nodes(%s,...) not an array reference", neatsvpv(dest,0)); + } if (items <= 1) { - (void)cv; RETVAL = 0; } else {
Thanks.