Skip site navigation (1) Skip section navigation (2)

Re: Warning is adjusted of pgbench.

From: "Hiroshi Saito" <z-saito(at)guitar(dot)ocn(dot)ne(dot)jp>
To: "Magnus Hagander" <magnus(at)hagander(dot)net>
Cc: <pgsql-patches(at)postgresql(dot)org>
Subject: Re: Warning is adjusted of pgbench.
Date: 2007-08-07 08:10:24
Message-ID: 014201c7d8ca$681e2d30$c601a8c0@HP22720319231 (view raw or flat)
Thread:
Lists: 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 


In response to

Responses

pgsql-patches by date

Next:From: Zdenek KotalaDate: 2007-08-07 11:36:30
Subject: Re: pgcrypto (v02)
Previous:From: Magnus HaganderDate: 2007-08-07 08:06:24
Subject: Re: Warning is adjusted of pgbench.

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group