From: | Arne Roland <A(dot)Roland(at)index(dot)de> |
---|---|
To: | Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org> |
Cc: | Pg Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
Subject: | Re: Rename of triggers for partitioned tables |
Date: | 2021-07-20 09:25:35 |
Message-ID: | 12118ea007e34a01bb26d8d36c4c0cfe@index.de |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Thank you! I get a compile time error
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -O2 -I../../../src/include -D_GNU_SOURCE -c -o trigger.o trigger.c
In file included from ../../../src/include/postgres.h:46:0,
from trigger.c:14:
trigger.c: In function ‘renametrig_partition’:
../../../src/include/c.h:118:31: error: expected ‘,’ or ‘;’ before ‘__attribute__’
#define pg_attribute_unused() __attribute__((unused))
^
../../../src/include/c.h:155:34: note: in expansion of macro ‘pg_attribute_unused’
#define PG_USED_FOR_ASSERTS_ONLY pg_attribute_unused()
^~~~~~~~~~~~~~~~~~~
trigger.c:1588:17: note: in expansion of macro ‘PG_USED_FOR_ASSERTS_ONLY’
int found = 0 PG_USED_FOR_ASSERTS_ONLY;
^~~~~~~~~~~~~~~~~~~~~~~~
trigger.c:1588:7: warning: unused variable ‘found’ [-Wunused-variable]
int found = 0 PG_USED_FOR_ASSERTS_ONLY;
^~~~~
make[3]: *** [<builtin>: trigger.o] Error 1
Any ideas on what I might be doing wrong?
Regards
Arne
From | Date | Subject | |
---|---|---|---|
Next Message | Amit Kapila | 2021-07-20 09:27:31 | Re: Skipping logical replication transactions on subscriber side |
Previous Message | Yugo NAGATA | 2021-07-20 09:15:09 | Re: Numeric x^y for negative x |