pramsey / pgsql-http

HTTP client for PostgreSQL, retrieve a web page from inside the database.
MIT License
1.3k stars 116 forks source link

PG16 compile error #155

Closed robe2 closed 1 year ago

robe2 commented 1 year ago

Seems to not compile against PG16 anymore

http.c:606:1: error: static declaration of ‘get_extension_schema’ follows non-static declaration
  606 | get_extension_schema(Oid ext_oid)
      | ^~~~~~~~~~~~~~~~~~~~
In file included from http.c:54:
/usr/include/postgresql/16/server/commands/extension.h:50:12: note: previous declaration of ‘get_extension_schema’ was here
   50 | extern Oid get_extension_schema(Oid ext_oid);
      |            ^~~~~~~~~~~~~~~~~~~~
http.c: In function ‘http_request’:
http.c:1157:9: warning: declaration of ‘content_type’ shadows a previous local [-Wshadow=compatible-local]
 1157 |   char *content_type;
      |         ^~~~~~~~~~~~
http.c:1015:8: note: shadowed declaration is here
 1015 |  char *content_type = NULL;
      |        ^~~~~~~~~~~~
make: *** [<builtin>: http.o] Error 1