agora inbox for postgres@postgres.berkeley.edu  
help / color / mirror / Atom feed
(no subject)
2+ messages / 2 participants
[nested] [flat]

* (no subject)
@ 1994-05-14 00:13 NP (in)complete problem. <perera@pollux.cs.uga.edu>
  1994-05-14 04:57 ` Re: ? Paul M. Aoki <aoki@postgres.Berkeley.EDU>
  0 siblings, 1 reply; 2+ messages in thread

From: NP (in)complete problem. @ 1994-05-14 00:13 UTC (permalink / raw)
  To: legacy

Hi:

Everytime I compile some code with "libpq.h" I get the following
warning mesg. What needs to be done to the header file to get rid of this ?

( gcc version 2.5.8, postgres 4.1, lex 2.4.6, and bison 1.22 )

gcc -g -DYYDEBUG=1 -I/usr/postgres/include  -target sun4 -c  addattr.c
In file included from addattr.c:2:
/usr/postgres/include/libpq.h:215: warning: `struct sockaddr_in' declared inside parameter list
/usr/postgres/include/libpq.h:215: warning: its scope is only this definition or declaration,
/usr/postgres/include/libpq.h:215: warning: which is probably not what you want.
/usr/postgres/include/libpq.h:216: warning: `struct sockaddr_in' declared inside parameter list

Thanks,

-- Niranjan

===============================================================================
    To add/remove yourself from the POSTGRES mailing list: send mail with 
    the subject line ADD or DEL to "postgres-request@postgres.Berkeley.EDU"

    If this fails, send mail to "post_questions@postgres.Berkeley.EDU" and
    a human will deal with it.  DO NOT post to the "postgres" mailing list.
===============================================================================




^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: ?
  1994-05-14 00:13 (no subject) NP (in)complete problem. <perera@pollux.cs.uga.edu>
@ 1994-05-14 04:57 ` Paul M. Aoki <aoki@postgres.Berkeley.EDU>
  0 siblings, 0 replies; 2+ messages in thread

From: Paul M. Aoki @ 1994-05-14 04:57 UTC (permalink / raw)
  To: NP (in)complete problem. <perera@pollux.cs.uga.edu>; +Cc: legacy

"NP (in)complete problem." <perera@pollux.cs.uga.edu> writes:
> Everytime I compile some code with "libpq.h" I get the following
> warning mesg. What needs to be done to the header file to get rid of this ?
> ( gcc version 2.5.8, postgres 4.1, lex 2.4.6, and bison 1.22 )

i don't know if this is documented in the release notes, but
it's a pretty bad idea to try to use the prototypes in the 4.x
(x<2) header files, since a lot of them are wrong. :-P

if you insist on doing so (by using gcc without -traditional)
and on not upgrading to 4.2, you can silence those particular
messages by including <netinet/in.h>..
--
  Paul M. Aoki  |  CS Div., Dept. of EECS, UCB  |  aoki@postgres.Berkeley.EDU
                |  Berkeley, CA 94720           |  ...!uunet!ucbvax!aoki

===============================================================================
    To add/remove yourself from the POSTGRES mailing list: send mail with 
    the subject line ADD or DEL to "postgres-request@postgres.Berkeley.EDU"

    If this fails, send mail to "post_questions@postgres.Berkeley.EDU" and
    a human will deal with it.  DO NOT post to the "postgres" mailing list.
===============================================================================




^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~1994-05-14 04:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
1994-05-14 00:13  NP (in)complete problem. <perera@pollux.cs.uga.edu>
1994-05-14 04:57 ` Re: ? Paul M. Aoki <aoki@postgres.Berkeley.EDU>

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox