leoll2 / UDPDK

A minimal UDP stack based on DPDK
Other
90 stars 35 forks source link

Supress unexpected warnings #1

Closed diohabara closed 2 years ago

diohabara commented 3 years ago

@leoll2 gcc-8 introduced a warning -Wstringop-truncation, by which you cannot do make udpdk even though it is instructed in README.md. In this PR, I've added some code so that you can build the software.

I don't think this patch will break the software.

diohabara commented 2 years ago

@leoll2 check the PR plz🙏

leoll2 commented 2 years ago

Hi @diohabara, I'm against suppressing compilation warnings unless there is a valid reason. Can you post the error log? I am willing to accept a true fix in the source code if you want to contribute, but I am not going to suppress warnings for safety reasons.