Re: Warning is adjusted of pgbench. - Mailing list pgsql-patches

From Hiroshi Saito
Subject Re: Warning is adjusted of pgbench.
Date
Msg-id 014201c7d8ca$681e2d30$c601a8c0@HP22720319231
Whole thread Raw
In response to Warning is adjusted of pgbench.  ("Hiroshi Saito" <z-saito@guitar.ocn.ne.jp>)
Responses Re: Warning is adjusted of pgbench.  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-patches
Hi. Magnus

$ make
gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels
 -fno-strict-aliasing -I../../src/interfaces/libpq -I. -I../../src/include -I./src/include/port/win32
 -DEXEC_BACKEND  "-I../../src/include/port/win32"  -c -o pgbench.o pgbench.c
gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels
 -fno-strict-aliasing
pgbench.o -L../../src/port -lpgport -L../../src/interfaces/libpq -lpq -L../../src/port -Wl,--allow-multiple-definition
   -lpgport -lm  -lws2_32 -lshfolder -o pgbench

I put in in order to avoid -D of the Makefile.

Regards,
Hiroshi Saito

> On Tue, Aug 07, 2007 at 04:58:19PM +0900, Hiroshi Saito wrote:
>> Hi Magnus.
>>
>> pgbench.c: In function `main':
>> pgbench.c:1257: warning: implicit declaration of function `getopt'
>>
>> adjustment of some reference is required for this.
>> and this is a FRONTEND program.
>> patch is smooth at VC8 and MinGW (gcc).
>
> Hi!
>
> Why do you need to #undef EXEC_BACKEND, and is there a specific reason for
> removing the include of win32.h?
>
> //Magnus


pgsql-patches by date:

Previous
From: Magnus Hagander
Date:
Subject: Re: Warning is adjusted of pgbench.
Next
From: Zdenek Kotala
Date:
Subject: Re: pgcrypto (v02)