On Mon, Apr 20, 2020 at 8:28 AM Ajit Khaparde <ajit.khapa...@broadcom.com> wrote: > > Fix a compilation error seen with CLANG. > The current code causes a typedef redefinition error because > 'p__LINE__' is a C11 feature. Fixing it by defining it to something > which is not already defined in the language.
Can't you reuse the RTE_BUILD_BUG_ON macro instead of redefining this in your driver? If the EAL macro is not enough, I suppose we could improve it. -- David Marchand