summaryrefslogtreecommitdiff
path: root/src/include/program_loading.h
diff options
context:
space:
mode:
authorAlan Green <avg@google.com>2019-05-16 08:52:12 +1000
committerPatrick Georgi <pgeorgi@google.com>2019-05-17 07:16:50 +0000
commit997207d9a663a74a5b1ed4499fd7b1ce83494d78 (patch)
treea9961f0521392afe87027ed6e443b61aacc1e7d4 /src/include/program_loading.h
parent6aca7e6bec07c583de18752aa7a8639b64e9bd93 (diff)
src/include/assert.h: add noreturn attribute to dead_code()
Clang does not recognize dead_code() as termination of execution. It gives this message: error: control reaches end of non-void function [-Werror,-Wreturn-type] This change adds an __attribute__((noreturn)) to ensure that clang recognises that this function will terminate execution. This change is more general solution to the problem that was addressed in the specific at https://review.coreboot.org/c/coreboot/+/32798 Signed-off-by: Alan Green <avg@google.com> Change-Id: I5ba7189559aa01545d5bbe893bced400a3aaabbb Reviewed-on: https://review.coreboot.org/c/coreboot/+/32833 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Julius Werner <jwerner@chromium.org>
Diffstat (limited to 'src/include/program_loading.h')
0 files changed, 0 insertions, 0 deletions