twitter_fdw$ make gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard
-g -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -I/usr/include/mit-krb5 -fPIC -pie -fno-omit-frame-pointer -fpic -I. -I./ -I/usr/include/postgresql/9.6/server -I/usr/includ
e/postgresql/internal -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include/tcl8.6 -c -o twitter_fdw.o twitter_fdw.c
twitter_fdw.c: In function ‘twitter_fdw_handler’:
twitter_fdw.c:180:29: warning: assignment from incompatible pointer type
fdwroutine->GetForeignPlan = twitterGetPlan;
^
twitter_fdw.c:182:7: warning: extra tokens at end of #endif directive
#endif;
^
twitter_fdw.c: In function ‘twitterGetPaths’:
twitter_fdw.c:416:11: error: incompatible type for argument 3 of ‘create_foreignscan_path’
(Path *)create_foreignscan_path(root, baserel, baserel->rows,
^
In file included from twitter_fdw.c:15:0:
/usr/include/postgresql/9.6/server/optimizer/pathnode.h:90:21: note: expected ‘struct PathTarget *’ but argument is of type ‘double’
extern ForeignPath *create_foreignscan_path(PlannerInfo *root, RelOptInfo *rel,
^
twitter_fdw.c:416:11: error: incompatible type for argument 6 of ‘create_foreignscan_path’
(Path *)create_foreignscan_path(root, baserel, baserel->rows,
^
In file included from twitter_fdw.c:15:0:
/usr/include/postgresql/9.6/server/optimizer/pathnode.h:90:21: note: expected ‘Cost’ but argument is of type ‘struct List *’
extern ForeignPath *create_foreignscan_path(PlannerInfo *root, RelOptInfo *rel,
^
In file included from /usr/include/postgresql/9.6/server/access/tupdesc.h:19:0,
from /usr/include/postgresql/9.6/server/utils/relcache.h:17,
from /usr/include/postgresql/9.6/server/access/genam.h:21,
from /usr/include/postgresql/9.6/server/access/amapi.h:15,
from /usr/include/postgresql/9.6/server/access/reloptions.h:22,
from twitter_fdw.c:3:
/usr/include/postgresql/9.6/server/nodes/pg_list.h:69:18: warning: passing argument 8 of ‘create_foreignscan_path’ from incompatible pointer type
#define NIL ((List *) NULL)
^
twitter_fdw.c:417:26: note: in expansion of macro ‘NIL’
10, 1000, NIL, NULL, NIL));
^
In file included from twitter_fdw.c:15:0:
/usr/include/postgresql/9.6/server/optimizer/pathnode.h:90:21: note: expected ‘Relids’ but argument is of type ‘struct List *’
extern ForeignPath *create_foreignscan_path(PlannerInfo *root, RelOptInfo *rel,
^
twitter_fdw.c:416:11: error: too few arguments to function ‘create_foreignscan_path’
(Path *)create_foreignscan_path(root, baserel, baserel->rows,
^
In file included from twitter_fdw.c:15:0:
/usr/include/postgresql/9.6/server/optimizer/pathnode.h:90:21: note: declared here
extern ForeignPath *create_foreignscan_path(PlannerInfo *root, RelOptInfo *rel,
^
twitter_fdw.c: In function ‘twitterGetPlan’:
twitter_fdw.c:433:9: error: too few arguments to function ‘make_foreignscan’
return make_foreignscan(tlist, keep_clauses, baserel->relid, NIL, baserel->fdw_private);
^
In file included from twitter_fdw.c:16:0:
/usr/include/postgresql/9.6/server/optimizer/planmain.h:51:21: note: declared here
extern ForeignScan *make_foreignscan(List *qptlist, List *qpqual,
^
twitter_fdw.c: In function ‘twitterBegin’:
twitter_fdw.c:482:9: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable]
int ret;
^
twitter_fdw.c: In function ‘twitterGetPlan’:
twitter_fdw.c:434:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
<builtin>: recipe for target 'twitter_fdw.o' failed
make: *** [twitter_fdw.o] Error 1
on Debian machine with PostgreSQL 9.6.0: