diff options
author | Julius Werner <jwerner@chromium.org> | 2020-06-10 15:35:08 -0700 |
---|---|---|
committer | Julius Werner <jwerner@chromium.org> | 2020-06-12 19:40:19 +0000 |
commit | 1e14de8bda93fda4c0ace8b6421d67e8605758bb (patch) | |
tree | 3d356c70f7f95779423480f75d866a2197c144a8 /src/arch/arm64 | |
parent | a2977ae72d7711fa24592f9e64d3ed62c3028664 (diff) |
tests: Add some basic warnings and fix resulting issues
The current test framework builds the test code without any warnings at
all, which isn't great -- we have already slipped in some cases of
non-void functions not returning a defined value, for example. It would
likely be overkill to try to use all the same warnings we use for normal
coreboot code (e.g. some stuff like -Wmissing-prototypes makes cmocka's
__wrap_xxx() mock functions unnecessarily cumbersome to work with, and
other things like -Wvla may be appropriate for firmware but is probably
too aggressive for some simple test code). Therefore, let's just add
some of the stuff that points out the most obvious errors.
Signed-off-by: Julius Werner <jwerner@chromium.org>
Change-Id: I4d9801f52a8551f55f419f4141dc21ccb835d676
Reviewed-on: https://review.coreboot.org/c/coreboot/+/42259
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Jan Dabros <jsd@semihalf.com>
Reviewed-by: Paul Fagerburg <pfagerburg@chromium.org>
Diffstat (limited to 'src/arch/arm64')
0 files changed, 0 insertions, 0 deletions