Project

General

Profile

Actions

Bug #6981

open

dpdk: compiler warnings

Added by Victor Julien 6 months ago.

Status:
Assigned
Priority:
Normal
Assignee:
Target version:
Affected Versions:
Effort:
Difficulty:
Label:

Description

runmode-dpdk.c:215:22: error: implicit conversion loses integer precision: 'unsigned int' to 'uint16_t' (aka 'unsigned short') [-Werror,-Wimplicit-int-conversion]
    args->capacity = capacity;
                   ~ ^~~~~~~~
runmode-dpdk.c:535:25: error: implicit conversion loses integer precision: 'intmax_t' (aka 'long') to 'uint16_t' (aka 'unsigned short') [-Werror,-Wimplicit-int-conversion]
    iconf->nb_rx_desc = entry_int;
                      ~ ^~~~~~~~~
  CC       runmode-ipfw.o
runmode-dpdk.c:550:25: error: implicit conversion loses integer precision: 'intmax_t' (aka 'long') to 'uint16_t' (aka 'unsigned short') [-Werror,-Wimplicit-int-conversion]
    iconf->nb_tx_desc = entry_int;
                      ~ ^~~~~~~~~
runmode-dpdk.c:580:18: error: implicit conversion loses integer precision: 'intmax_t' (aka 'long') to 'uint16_t' (aka 'unsigned short') [-Werror,-Wimplicit-int-conversion]
    iconf->mtu = entry_int;
               ~ ^~~~~~~~~
runmode-dpdk.c:860:52: error: implicit conversion loses integer precision: 'int' to 'uint16_t' (aka 'unsigned short') [-Werror,-Wimplicit-int-conversion]
    if (retval < 0 || ConfigValidateThreads(iconf->threads) != 0) {
                      ~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~^~~~~~~
runmode-dpdk.c:1603:46: error: implicit conversion loses integer precision: 'int' to 'uint16_t' (aka 'unsigned short') [-Werror,-Wimplicit-int-conversion]
    iconf->workers_sync->worker_cnt = iconf->threads;
                                    ~ ~~~~~~~^~~~~~~
6 errors generated.

No data to display

Actions

Also available in: Atom PDF