[dpdk-dev] [PATCH] telemetry: fix build

Ferruh Yigit ferruh.yigit at intel.com
Fri Jun 28 12:28:59 CEST 2019


On 6/28/2019 10:57 AM, Thomas Monjalon wrote:
> 28/06/2019 11:55, Ferruh Yigit:
>> On 6/28/2019 10:17 AM, Thomas Monjalon wrote:
>>> 28/06/2019 10:46, Laatz, Kevin:
>>>>
>>>> On 27/06/2019 20:51, Ferruh Yigit wrote:
>>>>> Build error:
>>>>> ../lib/librte_telemetry/rte_telemetry.c:558:28:
>>>>>    error: comparison of unsigned expression < 0 is always false
>>>>>    [-Werror,-Wtautological-compare]
>>>>>
>>>>> Build error not observed in default make build because telemetry library
>>>>> disabled by default but easier to reproduce via meson.
>>>
>>> No, I compile telemetry with make and with meson.
>>> I cannot reproduce the error. I guess it depends of the compiler version?
>>
>> At least I am seeing this via clang 4.0.1
> 
> clang version 8.0.0 here.
> Go update your machine :)
> 

But I believe the warning is valid, no idea why clang 8 is not warning



More information about the dev mailing list