[RTEMS Project] #4833: grlib/pci/grpci2dma.c Warnings Require Insight to Resolve Properly

RTEMS trac trac at rtems.org
Fri Jan 27 23:36:08 UTC 2023


#4833: grlib/pci/grpci2dma.c Warnings Require Insight to Resolve Properly
----------------------------+------------------------------
  Reporter:  Joel Sherrill  |      Owner:  Daniel Hellstrom
      Type:  defect         |     Status:  assigned
  Priority:  normal         |  Milestone:  6.1
 Component:  arch/sparc     |    Version:  6
  Severity:  normal         |   Keywords:
Blocked By:                 |   Blocking:
----------------------------+------------------------------
 These are warnings which may be new from gcc 12. It will take someone more
 knowledgeable about this driver to fix it.

 {{{
 ../../../bsps/shared/grlib/pci/grpci2dma.c: In function
 'grpci2dma_channel_list_remove':
 ../../../bsps/shared/grlib/pci/grpci2dma.c:363:25: warning: 'curr_chan'
 may be used uninitialized [-Wmaybe-uninitialized]
   363 |                         grpci2dma_channel_bd_set_next(curr_chan,
 new_first_chan);
       |
 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 ../../../bsps/shared/grlib/pci/grpci2dma.c:351:41: note: 'curr_chan' was
 declared here
   351 |                 struct grpci2_bd_chan * curr_chan;
       |                                         ^~~~~~~~~
 ../../../bsps/shared/grlib/pci/grpci2dma.c: In function
 'grpci2dma_status':
 ../../../bsps/shared/grlib/pci/grpci2dma.c:1769:16: warning: 'status' may
 be used uninitialized [-Wmaybe-uninitialized]
  1769 |         return status;
       |                ^~~~~~
 ../../../bsps/shared/grlib/pci/grpci2dma.c:1756:13: note: 'status' was
 declared here
  1756 |         int status;
       |             ^~~~~~


 }}}

--
Ticket URL: <http://devel.rtems.org/ticket/4833>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list