Re: [PATCH 5/5] eventdev: fix compilation with clang C++ builds

2022-03-14 Thread Bruce Richardson
On Fri, Mar 11, 2022 at 05:11:02PM -0800, Stephen Hemminger wrote: > On Fri, 11 Mar 2022 20:05:23 + > Bruce Richardson wrote: > > > When compiling on FreeBSD with clang and include checking enabled, > > errors are emitted due to differences in how empty structs/unions are > > handled in C and

Re: [PATCH 5/5] eventdev: fix compilation with clang C++ builds

2022-03-11 Thread Stephen Hemminger
On Fri, 11 Mar 2022 20:05:23 + Bruce Richardson wrote: > When compiling on FreeBSD with clang and include checking enabled, > errors are emitted due to differences in how empty structs/unions are > handled in C and C++, as C++ structs cannot have zero size. > > ../lib/eventdev/rte_eventdev.h

[PATCH 5/5] eventdev: fix compilation with clang C++ builds

2022-03-11 Thread Bruce Richardson
When compiling on FreeBSD with clang and include checking enabled, errors are emitted due to differences in how empty structs/unions are handled in C and C++, as C++ structs cannot have zero size. ../lib/eventdev/rte_eventdev.h:992:2: error: union has size 0 in C, non-zero size in C++ Since the