https://bugs.linaro.org/show_bug.cgi?id=1203

            Bug ID: 1203
           Summary: Clang build now fails with  _ODP_STATIC_ASSERT
           Product: OpenDataPlane
           Version: 0.10
          Hardware: Other
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: ---
         Component: General ODP API or linux-generic implimentation
          Assignee: [email protected]
          Reporter: [email protected]

To reproduce "make CC=clang"

make[2]: Entering directory '/home/mike/git/odp/platform/linux-generic'
  CC       odp_barrier.lo
  CC       odp_buffer.lo
In file included from odp_buffer.c:8:
In file included from ./include/odp_buffer_pool_internal.h:25:
./include/odp_buffer_internal.h:53:1: error: expected identifier or '('
_ODP_STATIC_ASSERT(ODP_CONFIG_PACKET_BUF_LEN_MIN >= 256,
^
../../include/odp/api/debug.h:48:40: note: expanded from macro
'_ODP_STATIC_ASSERT'
#define _ODP_STATIC_ASSERT(cond, msg)  _Static_assert(cond, msg)
                                       ^
../../include/odp/api/debug.h:34:31: note: expanded from macro '_Static_assert'
#define _Static_assert(e, s) (extern int (*static_assert_checker(void)) \
                              ^
In file included from odp_buffer.c:8:
In file included from ./include/odp_buffer_pool_internal.h:25:
./include/odp_buffer_internal.h:53:1: error: expected ')'
../../include/odp/api/debug.h:48:40: note: expanded from macro
'_ODP_STATIC_ASSERT'
#define _ODP_STATIC_ASSERT(cond, msg)  _Static_assert(cond, msg)
                                       ^
../../include/odp/api/debug.h:34:31: note: expanded from macro '_Static_assert'
#define _Static_assert(e, s) (extern int (*static_assert_checker(void)) \
                              ^
./include/odp_buffer_internal.h:53:1: note: to match this '('
../../include/odp/api/debug.h:48:40: note: expanded from macro
'_ODP_STATIC_ASSERT'
#define _ODP_STATIC_ASSERT(cond, msg)  _Static_assert(cond, msg)
                                       ^
../../include/odp/api/debug.h:34:30: note: expanded from macro '_Static_assert'
#define _Static_assert(e, s) (extern int (*static_assert_checker(void)) \
                             ^
In file included from odp_buffer.c:8:

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
lng-odp mailing list
[email protected]
http://lists.linaro.org/mailman/listinfo/lng-odp

Reply via email to