The branch main has been updated by siva:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=076c9db51f95291f73c25b39a8c9c4206c050bc1

commit 076c9db51f95291f73c25b39a8c9c4206c050bc1
Author:     Siva Mahadevan <[email protected]>
AuthorDate: 2026-09-10 14:40:03 +0000
Commit:     Siva Mahadevan <[email protected]>
CommitDate: 2026-09-10 14:40:03 +0000

    camcontrol: remove unused variable
    
    This fixes the build with gcc 16 after the changes
    to -Wunused*[0].
    
    [0] https://gcc.gnu.org/gcc-16/porting_to.html#changes-to-wunused
    
    Reviewed by:    ken, imp
    MFC after:      3 days
    Sponsored by:   The FreeBSD Foundation
    Differential Revision:  https://reviews.freebsd.org/D59540
---
 sbin/camcontrol/persist.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/sbin/camcontrol/persist.c b/sbin/camcontrol/persist.c
index d6fb9c6a5f2c..abc266c69d8b 100644
--- a/sbin/camcontrol/persist.c
+++ b/sbin/camcontrol/persist.c
@@ -373,7 +373,6 @@ persist_print_full(struct scsi_per_res_in_header *hdr, 
uint32_t valid_len)
        uint32_t length, len_to_go = 0;
        struct scsi_per_res_in_full_desc *desc;
        uint8_t *cur_pos;
-       int i;
 
        length = scsi_4btoul(hdr->length);
        length = MIN(length, valid_len);
@@ -389,10 +388,10 @@ persist_print_full(struct scsi_per_res_in_header *hdr, 
uint32_t valid_len)
 
        fprintf(stdout, "PRgeneration: %#x\n", scsi_4btoul(hdr->generation));
        cur_pos = (uint8_t *)&hdr[1];
-       for (len_to_go = length, i = 0,
+       for (len_to_go = length,
             desc = (struct scsi_per_res_in_full_desc *)cur_pos;
             len_to_go >= sizeof(*desc);
-            desc = (struct scsi_per_res_in_full_desc *)cur_pos, i++) {
+            desc = (struct scsi_per_res_in_full_desc *)cur_pos) {
                uint32_t additional_length, cur_length;
 
 

Reply via email to