Re: compiler warnings with gcc 4.8 and -Og - Mailing list pgsql-hackers

From Daniel Gustafsson
Subject Re: compiler warnings with gcc 4.8 and -Og
Date
Msg-id B1CCBCDD-9764-49B9-81C4-A41A66B860B7@yesql.se
Whole thread Raw
In response to Re: compiler warnings with gcc 4.8 and -Og  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
> On 2 Jun 2022, at 07:09, Tom Lane <tgl@sss.pgh.pa.us> wrote:

> I'm a little dubious about whether -Og is a case we should pay special
> attention to?  Our standard optimization setting for gcc is -O2, and
> once you go away from that there are any number of weird cases that
> may or may not produce warnings.

I think we should pick one level to keep warning free, and stick to that.  In
light of that, -O2 seems a lot more appealing than -Og.

--
Daniel Gustafsson        https://vmware.com/




pgsql-hackers by date:

Previous
From: Aleksander Alekseev
Date:
Subject: Re: [PATCH] Compression dictionaries for JSONB
Next
From: Robert Haas
Date:
Subject: Re: [PATCH] Expose port->authn_id to extensions and triggers