Subject: | DBI-1.615 compile warning on HPUX |
Date: | Tue, 2 Nov 2010 11:41:30 +0000 |
To: | "bug-DBI [...] rt.cpan.org" <bug-DBI [...] rt.cpan.org> |
From: | "Poynton, Esmond" <esmond.poynton [...] hp.com> |
Hello,
Using standard compiler from HP with version as shown below
C-ANSI-C C.06.25 HP C/aC++ Compiler
We get an the following during make .
"DBI.xs", line 3007: warning #2546-D: transfer of control bypasses
initialization of:
variable "h_perl" (declared at line 3078)
goto is_DESTROY_wrong_thread;
^
To me it looks like this
PerlInterpreter * h_perl = DBIc_THR_USER(imp_xxh) ;
if (h_perl != my_perl) {
/* XXX could call a 'handle clone' method here?, for dbh's at least */
if (is_DESTROY) {
is_DESTROY_wrong_thread:
if (trace_level >= 3) {
PerlIO_printf(DBILOGFP," DESTROY ignored because DBI %sh handle (%s) is owned by thread %p not current thread %p\n",
dbih_htype_name(DBIc_TYPE(imp_xxh)), HvNAME(DBIc_IMP_STASH(imp_xxh)),
(void*)DBIc_THR_USER(imp_xxh), (void*)my_perl) ;
PerlIO_flush(DBILOGFP);
}
XSRETURN(0); /* don't DESTROY handle, if it is not our's !*/
}
Not 100% on the error but is it use of a uninitialized h_perl in the PerlIO_printf statement. If trace level is greater than 3?
Regards,
Esmond
Show quoted text
_________________________________________________
Esmond Poynton
Enterprise Monitoring Implementation
HP OS GE - EMEA Production Engineering
Direct Dial: (+353) 01 2142972 Mobile : +353 86 2267665
Email: esmond.poynton@hp.com<mailto:esmond.poynton@hp.com>
Postal Address: Hewlett-Packard, Block 4 Floor 4 , 1 -4 Belfield Office Park, Beaver Row, Clonskeagh, Dublin 4, Ireland
Registered Office: Hewlett-Packard Ireland Limited, 63-74 Sir John Rogerson's Quay, Dublin 2.
Registered Number: 34508
The contents of this message and any attachments to it are confidential and may be legally privileged. If you have received this message in error, you should delete it from your system immediately and advise the sender.
To any recipient of this message within HP, unless otherwise stated you should consider this message and attachments as "HP CONFIDENTIAL".