On Wed, Feb 22, 2012 at 02:50:46PM +0000, Martin J. Evans wrote:
> On 22/02/12 11:09, Dave Mitchell wrote:
> It didn't:

> It is possible the following is the relevant code after preprocessing:

Hi, it turns out that it's a different section of code, but looking at the
right bit of code, the BOOT: is expanded in DBI.c into a whole bunch of
code, so a declaration can't immediately follow. Hopefully (I keep saying
that, don't I...) the following diff (to apply instead of my previous
diff) will fix it.

And thanks for working on this for me!

-- 
"Strange women lying in ponds distributing swords is no basis for a system
of government. Supreme executive power derives from a mandate from the
masses, not from some farcical aquatic ceremony."
    -- Dennis, "Monty Python and the Holy Grail"

diff --git a/DBI.xs b/DBI.xs
index 144cfe5..bf12d3d 100644
--- a/DBI.xs
+++ b/DBI.xs
@@ -4290,10 +4290,13 @@ PROTOTYPES: DISABLE
 
 
 BOOT:
+    {
+        MY_CXT_INIT;
+        (void)MY_CXT; /* avoid 'unused variable' warning */
+    }
+
     (void)cv;
     (void)items; /* avoid 'unused variable' warning */
-    MY_CXT_INIT;
-    (void)MY_CXT; /* avoid 'unused variable' warning */
     dbi_bootinit(NULL);
 
 

Reply via email to