From: | Brent Douglas <brent(dot)n(dot)douglas(at)gmail(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: PG_MODULE_MAGIC issue with small extension |
Date: | 2016-09-02 15:26:18 |
Message-ID: | CANYh1k1Q-8Xadp0eeFyPgqZbC1BeZbTfusM=mu7i9qjPN4GJrQ@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Thanks a lot Tom, it works as expected now. When reading the docs I must
have skipped to the code block without properly reading the sentence above.
Brent
On Fri, Sep 2, 2016 at 11:19 AM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Brent Douglas <brent(dot)n(dot)douglas(at)gmail(dot)com> writes:
> > pg_zlib.c:24:1: warning: type specifier missing, defaults to 'int'
> > [-Wimplicit-int]
> > PG_MODULE_MAGIC;
> > ^
> > 1 warning generated.
>
> Ah, I'd thought you'd just misread the documentation, but looking closer
> I realize that you're probably not understanding the significance of this
> warning. I think what's wrong is you have not #include'd "fmgr.h" which
> is where PG_MODULE_MAGIC is defined. It's not exactly clear to me why
> that's resulting in a warning rather than an error, but certainly this
> is indicating a problem.
>
> regards, tom lane
>
From | Date | Subject | |
---|---|---|---|
Next Message | David Gibbons | 2016-09-02 16:44:07 | Re: 2.5TB Migration from SATA to SSD disks - PostgreSQL 9.2 |
Previous Message | Tom Lane | 2016-09-02 15:19:03 | Re: PG_MODULE_MAGIC issue with small extension |