[Bug 263440] if_iwm: mark four variables as unused

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 20 Apr 2022 20:00:58 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=263440

            Bug ID: 263440
           Summary: if_iwm: mark four variables as unused
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: wireless
          Assignee: wireless@FreeBSD.org
          Reporter: Trond.Endrestol@ximalas.info

Created attachment 233365
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=233365&action=edit
Patch for sys/dev/iwm/if_iwm.c and sys/dev/iwm/if_iwm_time_event.c marking four
unused variables as such

--- if_iwm.o ---
/usr/src/sys/dev/iwm/if_iwm.c:3059:9: error: variable 'total' set but not used
[-Werror,-Wunused-but-set-variable]
        int i, total, nbant, noise;
               ^
/usr/src/sys/dev/iwm/if_iwm.c:5490:46: error: variable 'notif' set but not used
[-Werror,-Wunused-but-set-variable]
                        struct iwm_umac_scan_iter_complete_notif *notif;
                                                                  ^
/usr/src/sys/dev/iwm/if_iwm.c:5525:32: error: variable 'rsp' set but not used
[-Werror,-Wunused-but-set-variable]
                        struct iwm_scd_txq_cfg_rsp *rsp;
                                                    ^
3 errors generated.
*** [if_iwm.o] Error code 1


--- if_iwm_time_event.o ---
/usr/src/sys/dev/iwm/if_iwm_time_event.c:190:15: error: variable 'msg' set but
not used [-Werror,-Wunused-but-set-variable]
                const char *msg;
                            ^
1 error generated.
*** [if_iwm_time_event.o] Error code 1

-- 
You are receiving this mail because:
You are the assignee for the bug.