MinGW compiler warnings in ecpg tests - Mailing list pgsql-hackers

From Peter Eisentraut
Subject MinGW compiler warnings in ecpg tests
Date
Msg-id 760c9dd1-2d80-c223-3f90-609b615f7918@2ndquadrant.com
Whole thread Raw
Responses Re: MinGW compiler warnings in ecpg tests  (Michael Meskes <meskes@postgresql.org>)
List pgsql-hackers
Under MinGW, when compiling the ecpg test files, you get these warnings:

sqlda.pgc: In function 'dump_sqlda':
sqlda.pgc:44:11: warning: unknown conversion type character 'l' in format [-Wformat=]
    printf("name sqlda descriptor: '%s' value %lld\n", sqlda->sqlvar[i].sqlname.data, *(long long int
*)sqlda->sqlvar[i].sqldata);
sqlda.pgc:44:11: warning: too many arguments for format [-Wformat-extra-args]
sqlda.pgc:44:11: warning: unknown conversion type character 'l' in format [-Wformat=]
sqlda.pgc:44:11: warning: too many arguments for format [-Wformat-extra-args]

These files don't use our printf replacement or the c.h porting layer,
so unless we want to start doing that, I propose the attached patch to
determine the appropriate format conversion the hard way.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

Attachment

pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: fairywren failures
Next
From: Vik Fearing
Date:
Subject: Re: WIP: System Versioned Temporal Table