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

Commit1ce4c9e

Browse files
author
Neil Conway
committed
When using GCC on AMD64 and PPC, ECPGget_variable() takes a va_list *, not
a va_list. Christof Petig's previous patch made this change, but neglectedto update ecpglib/descriptor.c, resulting in a compiler warning (and alikely runtime crash) on AMD64 and PPC.
1 parent4dcc82a commit1ce4c9e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

‎src/interfaces/ecpg/ecpglib/descriptor.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* dynamic SQL support routines
22
*
3-
* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/descriptor.c,v 1.13 2005/11/30 12:49:49 meskes Exp $
3+
* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/descriptor.c,v 1.14 2006/01/15 22:46:53 neilc Exp $
44
*/
55

66
#definePOSTGRES_ECPG_INTERNAL
@@ -503,7 +503,11 @@ ECPGset_desc(int lineno, const char *desc_name, int index,...)
503503
break;
504504

505505
type=va_arg(args,enumECPGttype);
506+
#if defined(__GNUC__)&& (defined (__powerpc__)|| defined(__amd64__)|| defined(__x86_64__))
507+
ECPGget_variable(args,type,var, false);
508+
#else
506509
ECPGget_variable(&args,type,var, false);
510+
#endif
507511

508512
switch (itemtype)
509513
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp