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
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