Skip to content
Commit 05169a02 authored by Leandro Pereira's avatar Leandro Pereira Committed by Anas Nashif
Browse files

toolchain: common: Allow multiple uses of BUILD_ASSERT() in same scope



BUILD_ASSERT() was always defining a type with the name
__build_assert_failure, causing issues if more than one assertion were
used in the same scope.

Also, use an enum instead of a typedef to avoid (possibly spurious)
warnings such as these:

  variably modified ‘__build_assert_failure1’ at file scope [-Werror]

Signed-off-by: default avatarLeandro Pereira <leandro.pereira@intel.com>
parent 666274fa
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment