summaryrefslogtreecommitdiff
path: root/common/main.c
diff options
context:
space:
mode:
authorJack Rosenthal <jrosenth@chromium.org>2019-07-30 17:28:28 -0600
committerCommit Bot <commit-bot@chromium.org>2019-07-31 18:55:45 +0000
commit03ab9c1df5c16553b37288fea52911f7d8f62c38 (patch)
tree1d400cbb75a2ebe4577c0e91c2af516052e0655b /common/main.c
parent9dbf748033d8ce9f5038c9f98409abac50b3759d (diff)
downloadchrome-ec-03ab9c1df5c16553b37288fea52911f7d8f62c38.tar.gz
common: make IS_ENABLED sorta compatible with clang
Clang does not feature the error(...) attribute on functions, and apparently we use that compiler for the cr50 fuzz tests. Work around clang's limitations by removing the error(...) attribute when compiling with clang, allowing us to use IS_ENABLED in files that get compiled by the cr50 fuzz tests. BUG=chromium:989315 BRANCH=none TEST=make buildall -j TEST=IS_ENABLED works in system.c Change-Id: I15bf7a2d2854db12f8e00009afe39359cb6f5c19 Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1726948 Reviewed-by: Raul E Rangel <rrangel@chromium.org> Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org> Commit-Queue: Raul E Rangel <rrangel@chromium.org>
Diffstat (limited to 'common/main.c')
0 files changed, 0 insertions, 0 deletions