Thread

  1. Re: Warning question

    Tom Lane <tgl@sss.pgh.pa.us> — 2000-06-19T15:55:27Z

    Adam Haberlach <adam@newsnipple.com> writes:
    > Every time config.h is compiled, I get the following warning--is this
    > something that can/should be easily fixed, or should I figure out
    > which gcc command-line flag turns this off?
    
    > /Scratch/postgres-cvs/pgsql/src/include/config.h:411: warning: `struct in_addr' declared inside parameter list
    > /Scratch/postgres-cvs/pgsql/src/include/config.h:411: warning: its scope is only this definition or declaration,
    > /Scratch/postgres-cvs/pgsql/src/include/config.h:411: warning: which is probably not what you want.
    
    It means you haven't imported a header that defines struct in_addr.
    It looks like config.h is trying to do that just above the inet_aton
    declaration, but evidently it needs some more work on your platform...
    
    			regards, tom lane
    
    
  2. Warning question

    Adam Haberlach <adam@newsnipple.com> — 2000-06-19T16:31:43Z

    Every time config.h is compiled, I get the following warning--is this
    something that can/should be easily fixed, or should I figure out
    which gcc command-line flag turns this off?
    
    /Scratch/postgres-cvs/pgsql/src/include/config.h:411: warning: `struct in_addr' declared inside parameter list
    /Scratch/postgres-cvs/pgsql/src/include/config.h:411: warning: its scope is only this definition or declaration,
    /Scratch/postgres-cvs/pgsql/src/include/config.h:411: warning: which is probably not what you want.
    
    
    -- 
    Adam Haberlach             | "Oh my god!  It's filled with
    adam@newsnipple.com        |  char *'s!"
    http://www.newsnipple.com/ |