From: | Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Peter Eisentraut <peter(at)eisentraut(dot)org>, Michael Paquier <michael(at)paquier(dot)xyz>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Convert varatt.h macros to static inline functions |
Date: | 2025-08-05 21:21:57 |
Message-ID: | CAD21AoAcJH6L0mw6Q9nSO1=n3VZGi6A8U5marYC+6G+42d4oFw@mail.gmail.com |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Tue, Aug 5, 2025 at 1:59 PM Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>
> Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com> writes:
> > On Tue, Aug 5, 2025 at 11:34 AM Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> >> Interesting. I did not see such warnings with gcc 14.3.1, 15.1.1,
> >> nor older gcc versions. Must be something peculiar to 14.2.
>
> > Hmm, I got the same warning with 14.3.1 (exact version shown below) so
> > probably something is strange on my end:
>
> > % gcc --version
> > gcc (GCC) 14.3.1 20250805
>
> That's even more interesting. The specific late-model gcc versions
> I checked were from Fedora 41:
>
> $ gcc --version
> gcc (GCC) 14.3.1 20250523 (Red Hat 14.3.1-1)
>
> and Fedora 42:
>
> gcc (GCC) 15.1.1 20250521 (Red Hat 15.1.1-2)
>
> Maybe there's some strange cross-distro difference here, but
> what I'm wondering is if there's a difference in CFLAGS.
> My build used
>
> CFLAGS = -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type -Wshadow=compatible-local -Wformat-security -Wmissing-variable-declarations -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -g -O2
Yeah, interestingly I didn't see the warning with CFLAGS your build
used but got it if I use -O0 instead of -O2.
Regards,
--
Masahiko Sawada
Amazon Web Services: https://aws.amazon.com
From | Date | Subject | |
---|---|---|---|
Next Message | Álvaro Herrera | 2025-08-05 21:32:41 | Re: Function scan FDW pushdown |
Previous Message | Nathan Bossart | 2025-08-05 21:03:33 | fix ancient typo in transformRelOptions() |