Thomas, I will submit a v3 patch in a few minutes.
On Oct 1, 2014, at 9:57 AM, Wiles, Roger Keith
wrote:
> Hi Thomas,
>
> Changing the macros to:
>
> #ifdef RTE_LIBRTE_MEMPOOL_DEBUG
> #ifndef __INTEL_COMPILER
> #pragma GCC diagnostic ignored "-Wcast-qual"
> #endif
> .
> .
> #ifndef __INTEL_CO
2014-09-28 05:30, Wiles, Roger Keith:
> When enabling RTE_LIBRTE_MEMPOOL_DEBUG and compiling with clang
> compiler an error occurs, because ifdefed code now includes GCC pragmas.
>
> GCC 4.4 is when push_options and pop_options pragma show up.
>
> Signed-off-by: Keith Wiles
[...]
> -#ifndef __IN
Hi Thomas,
Changing the macros to:
#ifdef RTE_LIBRTE_MEMPOOL_DEBUG
#ifndef __INTEL_COMPILER
#pragma GCC diagnostic ignored "-Wcast-qual"
#endif
.
.
#ifndef __INTEL_COMPILER
#pragma GCC diagnostic error "-Wcast-qual"
#endif
Works and is a good solution. I normally do not like negative ?ifndef?
When enabling RTE_LIBRTE_MEMPOOL_DEBUG and compiling with clang
compiler an error occurs, because ifdefed code now includes GCC pragmas.
GCC 4.4 is when push_options and pop_options pragma show up.
Signed-off-by: Keith Wiles
---
lib/librte_mempool/rte_mempool.h | 4 ++--
1 file changed, 2 inse
4 matches
Mail list logo