projects
/
users
/
bernd
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
91c7c9f
)
When using GCC on AMD64 and PPC, ECPGget_variable() takes a va_list *, not
author
Neil Conway
<
[email protected]
>
Sun, 15 Jan 2006 22:47:21 +0000
(22:47 +0000)
committer
Neil Conway
<
[email protected]
>
Sun, 15 Jan 2006 22:47:21 +0000
(22:47 +0000)
a va_list. Christof Petig's previous patch made this change, but neglected
to update ecpglib/descriptor.c, resulting in a compiler warning (and a
likely runtime crash) on AMD64 and PPC.
src/interfaces/ecpg/ecpglib/descriptor.c
patch
|
blob
|
blame
|
history
diff --git
a/src/interfaces/ecpg/ecpglib/descriptor.c
b/src/interfaces/ecpg/ecpglib/descriptor.c
index 4285c2993234dccf8179d32e80001380308b0e31..82b9da7cebe48836c4b117a887d78e73fb139053 100644
(file)
--- a/
src/interfaces/ecpg/ecpglib/descriptor.c
+++ b/
src/interfaces/ecpg/ecpglib/descriptor.c
@@
-503,7
+503,11
@@
ECPGset_desc(int lineno, const char *desc_name, int index,...)
break;
type = va_arg(args, enum ECPGttype);
+#if defined(__GNUC__) && (defined (__powerpc__) || defined(__amd64__) || defined(__x86_64__))
+ ECPGget_variable(args, type, var, false);
+#else
ECPGget_variable(&args, type, var, false);
+#endif
switch (itemtype)
{