mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-27 04:53:28 +00:00
Suppress possible unused variable warning for icl_soft.c
With clang 15, the following -Werror warning is produced on i386: sys/dev/iscsi//icl_soft.c:1277:6: error: variable 'i' set but not used [-Werror,-Wunused-but-set-variable] int i; ^ The 'i' variable is used later in the icl_soft_conn_pdu_get_bio() function, via the PHYS_TO_DMAP() macro. However, on i386 and some other architectures, this macro is defined to panic immediately, so in those cases, 'i' is indeed not used. Suppress the warning by marking 'i' as unused. MFC after: 3 days
This commit is contained in:
parent
50526f522b
commit
02a226ac34
@ -1274,7 +1274,7 @@ icl_soft_conn_pdu_get_bio(struct icl_conn *ic, struct icl_pdu *ip,
|
||||
{
|
||||
vm_offset_t vaddr;
|
||||
size_t page_offset, todo;
|
||||
int i;
|
||||
int i __unused;
|
||||
|
||||
MPASS(bp->bio_flags & BIO_UNMAPPED);
|
||||
if (bio_off < PAGE_SIZE - bp->bio_ma_offset) {
|
||||
|
Loading…
Reference in New Issue
Block a user