pganalyze / pg_query

Ruby extension to parse, deparse and normalize SQL queries using the PostgreSQL query parser
BSD 3-Clause "New" or "Revised" License
790 stars 85 forks source link

Cant compile lib #300

Closed martirosharutyunyan closed 1 year ago

martirosharutyunyan commented 1 year ago

github.com/pganalyze/pg_query_go/v4/parser

src_port_snprintf.c:374:1: error: conflicting types for ‘strchrnul’; have ‘const char (const char , int)’ 374 | strchrnul(const char s, int c) | ^~~~~ In file included from /home/martiros/go/pkg/mod/github.com/pganalyze/pg_query_go/v4@v4.2.1/parser/include/c.h:61, from src_port_snprintf.c:62: /usr/include/string.h:286:14: note: previous declaration of ‘strchrnul’ with type ‘char (const char , int)’ 286 | extern char strchrnul (const char *s, int c) | ^~~~~ cc1: note: unrecognized command-line option ‘-Wno-unknown-warning-option’ may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option ‘-Wno-deprecated-non-prototype’ may have been intended to silence earlier diagnostics