lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-devel] build error: conversion to 'u32_t' from 'int' may chang


From: address@hidden
Subject: Re: [lwip-devel] build error: conversion to 'u32_t' from 'int' may change the sign of the result
Date: Wed, 26 Jul 2017 21:14:21 +0200
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0

Axel Lin wrote:
I got below build error in current git tree:

src/include/lwip/api.h:394:77: error: conversion to 'u32_t' from 'int'
may change the sign of the result [-Werror=sign-conversion]
  #define netconn_set_recvtimeout(conn, timeout)
((conn)->recv_timeout = (timeout))
                                                                              ^
Looks like commit 44f7a3cb0d87 ("work on -Wconversion...") changes int
recv_timeout; to u32_t recv_timeout; causes this build error.

Yes, that was on purpose. Negative values are not supported and the value is directly passed to sys_arch_mbox_fetch(), where you'd normally get the conversion error (but it seems like you didn't, and we didn't either, because -Wconversion is still disabled).

I don't think there's much we can do to smoothen upgrading, or do you have a suggestion?

Simon



reply via email to

[Prev in Thread] Current Thread [Next in Thread]