BUG: cmd/tmp.c missing fallthrough or break

Hello Simon,
please, have a look and this error:
cmd/tpm_test.c:473:25: note: in expansion of macro ‘assert’ 473 | assert(i >= TPM_MAX_NV_WRITES_NOOWNER); | ^~~~~~ cmd/tpm_test.c:474:17: note: here 474 | default: | ^~~~~~~
I am not sure if you forgot a break or a fallthrough.
Best regards
Heinrich

Hi Heinrich,
It needs a break. It is trying to write too many times and create an error.
Regards, Simon
On Sat, 1 Apr 2023 at 21:04, Heinrich Schuchardt < heinrich.schuchardt@canonical.com> wrote:
Hello Simon,
please, have a look and this error:
cmd/tpm_test.c:473:25: note: in expansion of macro ‘assert’ 473 | assert(i >= TPM_MAX_NV_WRITES_NOOWNER); | ^~~~~~ cmd/tpm_test.c:474:17: note: here 474 | default: | ^~~~~~~
I am not sure if you forgot a break or a fallthrough.
Best regards
Heinrich
participants (2)
-
Heinrich Schuchardt
-
Simon Glass