提交 7ec4678f 编写于 作者: J Jesse Zhang

Fix multiple definition linker error in unit tests

In the same spirit as ee7eb0e8, this removes the extra
definition in postgres_test.c.

This is uncovered by building with GCC 10, where -fno-common is the new
default [1][2] (vis a vis -fcommon). I could also reproduce this by
turning on "-fno-common" in older releases of GCC and Clang.

Backpatch to 6X_STABLE.

(cherry picked from commit 108504ff)
上级 265bdcd1
......@@ -40,7 +40,6 @@ errfinish_impl(int dummy __attribute__((unused)),...)
will_return(errstart, true);\
} \
const char *progname = "postgres";
/* List with multiple elements, return FALSE. */
static void
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册