Source-Changes-D archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: CVS commit: src/external/bsd/dhcpcd/dist/src
On Mon, Feb 10, 2020 at 04:45:35PM +0000, Roy Marples wrote:
> On 09/02/2020 19:21, Joerg Sonnenberger wrote:
> > On Sat, Feb 08, 2020 at 12:17:16PM +0000, Santhosh Raju wrote:
> > > Module Name: src
> > > Committed By: fox
> > > Date: Sat Feb 8 12:17:16 UTC 2020
> > >
> > > Modified Files:
> > > src/external/bsd/dhcpcd/dist/src: dhcp.c
> > >
> > > Log Message:
> > > external/bsd/dhcpcd: Fix a -Wconversion warning.
> > >
> > > Type cast uint16_t to size_t to prevent implicit type conversion.
> >
> > Seriously? That should not warn and no cast should be used either.
>
> What fix would you recommend then?
Disable the warning in GCC and fill an upstream PR against it. A
conversion from uint16_t to size_t is value preserving by definition of
the ISO C platform limits. It should never create a warning.
Joerg
Home |
Main Index |
Thread Index |
Old Index