Add 'volatile' to suppress gcc warning. Not sure why this warning
authorTom Lane <[email protected]>
Fri, 24 May 2002 19:58:04 +0000 (19:58 +0000)
committerTom Lane <[email protected]>
Fri, 24 May 2002 19:58:04 +0000 (19:58 +0000)
wasn't seen before, maybe the Tcl compiler flags were less strict.

src/pl/tcl/pltcl.c

index 0920a36435f27ec2c791b7e16488aaeca39f07cf..f477c7f22ca6d4d71a306b36dc3b132981d974d0 100644 (file)
@@ -1873,7 +1873,7 @@ pltcl_SPI_execp(ClientData cdata, Tcl_Interp *interp,
        int                     loop_body;
        Tcl_HashEntry *hashent;
        pltcl_query_desc *qdesc;
-       Datum      *argvalues = NULL;
+       Datum      *volatile argvalues = NULL;
        char       *volatile nulls = NULL;
        char       *volatile arrayname = NULL;
        int                     count = 0;