Thread: Warnings in pgstattuple

Warnings in pgstattuple

From
Alvaro Herrera
Date:
Just noticed these:

0 $ make
gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels
-fno-strict-aliasing-g -fpic -I/pgsql//source/12vacuum/contrib/pgstattuple -I../../src/include
-I/pgsql//source/12vacuum/src/include-D_GNU_SOURCE   -c -o pgstattuple.o
/pgsql//source/12vacuum/contrib/pgstattuple/pgstattuple.c-MMD -MP -MF .deps/pgstattuple.Po
 
/pgsql//source/12vacuum/contrib/pgstattuple/pgstattuple.c: In function 'pgstat_btree':
/pgsql//source/12vacuum/contrib/pgstattuple/pgstattuple.c:335: warning: format '%llu' expects type 'long long unsigned
int',but argument 2 has type 'uint64'
 
/pgsql//source/12vacuum/contrib/pgstattuple/pgstattuple.c:335: warning: format '%llu' expects type 'long long unsigned
int',but argument 3 has type 'uint64'
 
/pgsql//source/12vacuum/contrib/pgstattuple/pgstattuple.c:335: warning: format '%llu' expects type 'long long unsigned
int',but argument 4 has type 'uint64'
 

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support


Re: Warnings in pgstattuple

From
Tom Lane
Date:
Alvaro Herrera <alvherre@commandprompt.com> writes:
> Just noticed these:

Yeah, I complained about that before: the unportability is the least of
that code's problems.  There's a patch in the queue that I trust fixes
it.
        regards, tom lane