[Tarantool-patches] [PATCH] decimal: fix build with GCC 10

Alexander Turenko alexander.turenko at tarantool.org
Mon Jun 8 14:36:02 MSK 2020


On Mon, Jun 08, 2020 at 02:30:43PM +0300, Serge Petrenko wrote:
> 
> 08.06.2020 14:22, Alexander Turenko пишет:
> > The patch itself is okay.
> > 
> > On Fri, Jun 05, 2020 at 05:01:25PM +0300, Serge Petrenko wrote:
> > > GCC 10 produces the following error:
> > > cc1: warning: function may return address of local variable [-Wreturn-local-addr]
> > > 
> > > Fix it.
> > It would be good to mention whether it is a real problem or
> > false-positive. (The patch is already pushed, so this comment is just
> > for information.)
> 
> 
> It's a false-positive. The return value  is  only  used to test `dec !=
> NULL`.
> 
> `dec == NULL` means an error.So, no UB here.
> 
> I guess no need for a changelog entry then.

Ouch, I see. Disregard so.


More information about the Tarantool-patches mailing list