Skip to content

DPDK compiler warning when building on gcc 15 #888

@richqubit

Description

@richqubit

When compiling f-stack's dpdk on Fedora 42 (using gcc 15.1.1), I get many similar warnings to this. These warnings were not present when compiling with gcc 14.

../lib/ethdev/rte_flow.h:2045:27: warning: initializer-string for array of ‘unsigned char’ truncates NUL terminator but destination lacks ‘nonstring’ attribute (4 chars into 3 available) [-Wunterminated-string-initialization]
 2045 |                 .dst_qp = "\xff\xff\xff",
      |                           ^~~~~~~~~~~~~~

This was fixed in DPDK commit DPDK/dpdk@e0d947a

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions