Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1e091ad

Browse files
committed
Add 'volatile' declarations to silence gcc warnings about longjmp.
Shouldn't create any portability problems, since we have a configuretest to #define away volatile if the compiler doesn't support it.
1 parentf884130 commit1e091ad

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

‎src/pl/tcl/pltcl.c

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* procedural language (PL)
44
*
55
* IDENTIFICATION
6-
* $Header: /cvsroot/pgsql/src/pl/tcl/pltcl.c,v 1.18 2000/01/15 22:43:23 tgl Exp $
6+
* $Header: /cvsroot/pgsql/src/pl/tcl/pltcl.c,v 1.19 2000/02/27 07:18:29 tgl Exp $
77
*
88
* This software is copyrighted by Jan Wieck - Hamburg.
99
*
@@ -417,7 +417,7 @@ pltcl_func_handler(FmgrInfo *proinfo,
417417
char*stroid;
418418
Tcl_HashEntry*hashent;
419419
inthashnew;
420-
pltcl_proc_desc*prodesc;
420+
pltcl_proc_desc*volatileprodesc;
421421
Tcl_DStringtcl_cmd;
422422
Tcl_DStringlist_tmp;
423423
inttcl_rc;
@@ -739,7 +739,7 @@ pltcl_trigger_handler(FmgrInfo *proinfo)
739739
inthashnew;
740740
pltcl_proc_desc*prodesc;
741741
TupleDesctupdesc;
742-
HeapTuplerettup;
742+
volatileHeapTuplerettup;
743743
Tcl_DStringtcl_cmd;
744744
Tcl_DStringtcl_trigtup;
745745
Tcl_DStringtcl_newtup;
@@ -1289,13 +1289,13 @@ pltcl_SPI_exec(ClientData cdata, Tcl_Interp *interp,
12891289
intspi_rc;
12901290
charbuf[64];
12911291
intcount=0;
1292-
char*arrayname=NULL;
1293-
intquery_idx;
1292+
char*volatilearrayname=NULL;
1293+
volatileintquery_idx;
12941294
inti;
12951295
intloop_rc;
12961296
intntuples;
1297-
HeapTuple*tuples;
1298-
TupleDesctupdesc=NULL;
1297+
HeapTuple*volatiletuples;
1298+
volatileTupleDesctupdesc=NULL;
12991299
sigjmp_bufsave_restart;
13001300

13011301
char*usage="syntax error - 'SPI_exec "
@@ -1701,20 +1701,20 @@ pltcl_SPI_execp(ClientData cdata, Tcl_Interp *interp,
17011701
{
17021702
intspi_rc;
17031703
charbuf[64];
1704-
inti,
1705-
j;
1704+
volatileinti;
1705+
intj;
17061706
intloop_body;
17071707
Tcl_HashEntry*hashent;
17081708
pltcl_query_desc*qdesc;
1709-
char*nulls=NULL;
1710-
char*arrayname=NULL;
1709+
char*volatilenulls=NULL;
1710+
char*volatilearrayname=NULL;
17111711
intcount=0;
17121712
intcallnargs;
17131713
staticchar**callargs=NULL;
17141714
intloop_rc;
17151715
intntuples;
1716-
HeapTuple*tuples=NULL;
1717-
TupleDesctupdesc=NULL;
1716+
HeapTuple*volatiletuples=NULL;
1717+
volatileTupleDesctupdesc=NULL;
17181718
sigjmp_bufsave_restart;
17191719

17201720
char*usage="syntax error - 'SPI_execp "

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp