NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kern/55044: netbsd-9 compile error



>Number:         55044
>Category:       kern
>Synopsis:       netbsd-9 compile error
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Mar 03 07:40:00 +0000 2020
>Originator:     Uwe Toenjes
>Release:        NetBSD 9.0
>Organization:
University of Leipzig
>Environment:
NetBSD 9.0
>Description:
kernel compile error 

--- if_ena.o ---
/usr/src/sys/dev/pci/if_ena.c: In function 'ena_request_io_irq':
/usr/src/sys/dev/pci/if_ena.c:2089:7: error: unused variable 'irq_slot' [-Werror=unused-variable]
   int irq_slot = i + irq_off;
       ^~~~~~~~

>How-To-Repeat:
activate DEBUG in the kernel configuration and compile the kernel.


#if defined(DEBUG) || defined(DIAGNOSTIC)
                int irq_slot = i + irq_off;
#endif

>Fix:
it seems like the #if statement is not needed. It can be removed.



Home | Main Index | Thread Index | Old Index