Skip to content
Commit 68040c8d authored by Rajavardhan Gundi's avatar Rajavardhan Gundi Committed by Anas Nashif
Browse files

kernel: sem: Modify the way BUILD_ASSERT is used



BUILD_ASSERT() macro makes use of __COUNTER__ which may not be
supported in some compilers (like xcc). So, multiple uses of
BUILD_ASSERT() in same scope is not possible for such compilers.
Instead, the expression to BUILD_ASSERT can be "&&"ed to achieve
the same purpose.

Signed-off-by: default avatarRajavardhan Gundi <rajavardhan.gundi@intel.com>
parent 7db4d569
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment