Skip to contentSkip to conversation

BUG: cmd/tmp.c missing fallthrough or break

DISCUSSION Heinrich Schuchardt 2 participants 2 messages Apr 1, 2023 – Apr 2, 2023

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw

Hi Heinrich,

It needs a break. It is trying to write too many times and create an error.

Regards,
Simon

Quoted 17 lines · Heinrich Schuchardt

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