Re: [libdbi-devel] dbi_conn_queryf and using __attribute__((format))

2013-04-18 Thread markus . hoenicka
Tom Lane writes: > and here's a typical use: > > extern int pg_snprintf(char *str, size_t count, const char *fmt,...) > /* This extension allows gcc to check the format string */ > __attribute__((format(PG_PRINTF_ATTRIBUTE, 3, 4))); > Hi Tom, thanks for your explanation. I've checked the

Re: [libdbi-devel] dbi_conn_queryf and using __attribute__((format))

2013-04-18 Thread Tom Lane
markus.hoeni...@mhoenicka.de writes: > thanks for your explanation. I've checked the sources, and > interestingly src/dbi_main.c contains a declaration of dbi_conn_queryf(): > dbi_result dbi_conn_queryf(dbi_conn Conn, const char *formatstr, ...) > __attribute__ ((format (printf, 2, 3))); > in ad

Re: [libdbi-devel] dbi_conn_queryf and using __attribute__((format))

2013-04-18 Thread markus . hoenicka
Tom Lane writes: > markus.hoeni...@mhoenicka.de writes: > > thanks for your explanation. I've checked the sources, and > > interestingly src/dbi_main.c contains a declaration of dbi_conn_queryf(): > > > dbi_result dbi_conn_queryf(dbi_conn Conn, const char *formatstr, ...) > > __attribute__