Author: turnstep
Date: Sun Jul 20 07:23:46 2008
New Revision: 11545
Modified:
DBD-Pg/trunk/dbdimp.c
Log:
Make the compiler happy by not mixing declarations and code.
Modified: DBD-Pg/trunk/dbdimp.c
==============================================================================
--- DBD-Pg/trunk/dbdimp.c (original)
+++ DBD-Pg/trunk/dbdimp.c Sun Jul 20 07:23:46 2008
@@ -291,18 +291,19 @@
if (!SvROK(SvMAGIC(SvRV(newRV((SV*)arg)))->mg_obj)) {
return;
}
+ else {
+ D_imp_dbh( sv_2mortal(newRV((SV*)arg)) );
- D_imp_dbh( sv_2mortal(newRV((SV*)arg)) );
-
- if (TSTART) TRC(DBILOGFP, "%sBegin pg_warn (message: %s DBIc_WARN: %d PrintWarn: %d)\n",
- THEADER,
- message, DBIc_WARN(imp_dbh) ? 1 : 0,
- DBIc_is(imp_dbh, DBIcf_PrintWarn) ? 1 : 0);
+ if (TSTART) TRC(DBILOGFP, "%sBegin pg_warn (message: %s DBIc_WARN: %d PrintWarn: %d)\n",
+ THEADER,
+ message, DBIc_WARN(imp_dbh) ? 1 : 0,
+ DBIc_is(imp_dbh, DBIcf_PrintWarn) ? 1 : 0);
- if (DBIc_WARN(imp_dbh) && DBIc_is(imp_dbh, DBIcf_PrintWarn))
- warn(message);
+ if (DBIc_WARN(imp_dbh) && DBIc_is(imp_dbh, DBIcf_PrintWarn))
+ warn(message);
- if (TEND) TRC(DBILOGFP, "%sEnd pg_warn\n", THEADER);
+ if (TEND) TRC(DBILOGFP, "%sEnd pg_warn\n", THEADER);
+ }
} /* end of pg_warn */
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.