Attention is currently required from: Angel Pons, Light, Anastasia Klimchuk.
View Change
1 comment:
File ich_descriptors.c:
Patch Set #6, Line 507: assert(j >= 12);
I am not sure, are we using assert in code? I am wondering what other people think. […]
I had a similar thought on the patch around `writeprotect_ranges.c`. Such
an assertion would help scan-build. Not sure if it helps humans :)
In this instance, maybe just make it explicit:
for (j = 12; j < num_regions; ++j)
?
If we'd want `assert()` only for function contracts, we could also make
exceptions and comment, e.g.
assert(j >= 12); /* to help scan-build */
To view, visit change 62764. To unsubscribe, or for help writing mail filters, visit settings.
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: I5921cc571f3dca5188ca1973dba6ececbcbe2f39
Gerrit-Change-Number: 62764
Gerrit-PatchSet: 9
Gerrit-Owner: Light <aarya.chaumal@gmail.com>
Gerrit-Reviewer: Angel Pons <th3fanbus@gmail.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply@coreboot.org>
Gerrit-CC: Anastasia Klimchuk <aklm@chromium.org>
Gerrit-CC: Nico Huber <nico.h@gmx.de>
Gerrit-CC: Paul Menzel <paulepanter@mailbox.org>
Gerrit-Attention: Angel Pons <th3fanbus@gmail.com>
Gerrit-Attention: Light <aarya.chaumal@gmail.com>
Gerrit-Attention: Anastasia Klimchuk <aklm@chromium.org>
Gerrit-Comment-Date: Thu, 24 Mar 2022 13:50:14 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Anastasia Klimchuk <aklm@chromium.org>
Gerrit-MessageType: comment