[RTEMS Project] #2924: Warnings in SPARC BSPs

RTEMS trac trac at rtems.org
Fri Mar 10 19:31:17 UTC 2017


#2924: Warnings in SPARC BSPs
---------------------------+-----------------------------
 Reporter:  Joel Sherrill  |      Owner:  joel.sherrill@…
     Type:  defect         |     Status:  new
 Priority:  normal         |  Milestone:  4.12
Component:  bsps           |    Version:  4.12
 Severity:  normal         |   Keywords:
---------------------------+-----------------------------
 As of today, the following warnings exist for SPARC  BSPs.

 log/sparc-
 leon2.log:../../../../../../../../rtems/c/src/lib/libbsp/sparc/leon2/console/debugputs.c:43:5:
 warning: this 'while' clause does not guard... [-Wmisleading-indentation]
 log/sparc-
 leon2.log:../../../../../../../../rtems/c/src/lib/libbsp/sparc/leon2/../../sparc/shared/amba/ahbstat.c:156:3:
 warning: implicit declaration of function 'printk' [-Wimplicit-function-
 declaration]
 log/sparc-
 leon2.log:../../../../../../../../rtems/c/src/lib/libbsp/sparc/leon2/../../sparc/shared/amba/ahbstat.c:156:3:
 warning: nested extern declaration of 'printk' [-Wnested-externs]
 log/sparc-
 leon2.log:../../../../../../../../rtems/c/src/lib/libbsp/sparc/leon2/../../sparc/shared/drvmgr/ambapp_bus.c:647:4:
 warning: implicit declaration of function 'printk' [-Wimplicit-function-
 declaration]
 log/sparc-
 leon2.log:../../../../../../../../rtems/c/src/lib/libbsp/sparc/leon2/../../sparc/shared/drvmgr/ambapp_bus.c:647:4:
 warning: nested extern declaration of 'printk' [-Wnested-externs]
 log/sparc-
 leon2.log:../../../../../../../../rtems/c/src/lib/libbsp/sparc/leon2/../../sparc/shared/drvmgr/leon2_amba_bus.c:168:3:
 warning: implicit declaration of function 'printk' [-Wimplicit-function-
 declaration]
 log/sparc-
 leon2.log:../../../../../../../../rtems/c/src/lib/libbsp/sparc/leon2/../../sparc/shared/drvmgr/leon2_amba_bus.c:168:3:
 warning: nested extern declaration of 'printk' [-Wnested-externs]
 log/sparc-
 leon2.log:../../../../../../../../rtems/c/src/lib/libbsp/sparc/leon2/../../sparc/shared/irq/genirq.c:244:3:
 warning: implicit declaration of function 'printk' [-Wimplicit-function-
 declaration]
 log/sparc-
 leon2.log:../../../../../../../../rtems/c/src/lib/libbsp/sparc/leon2/../../sparc/shared/irq/genirq.c:244:3:
 warning: nested extern declaration of 'printk' [-Wnested-externs]
 log/sparc-
 leon2.log:../../../../../../../../rtems/c/src/lib/libbsp/sparc/leon2/../../sparc/shared/spw/grspw_router.c:213:4:
 warning: implicit declaration of function 'printk' [-Wimplicit-function-
 declaration]
 log/sparc-
 leon2.log:../../../../../../../../rtems/c/src/lib/libbsp/sparc/leon2/../../sparc/shared/spw/grspw_router.c:213:4:
 warning: nested extern declaration of 'printk' [-Wnested-externs]
 log/sparc-
 leon2.log:../../../../../../../../rtems/c/src/lib/libbsp/sparc/leon2/../../sparc/shared/uart/apbuart.c:574:21:
 warning: format '%x' expects argument of type 'unsigned int', but argument
 2 has type 'apbuart_priv * {aka struct <anonymous> *}' [-Wformat=]
 log/sparc-
 leon3.log:../../../../../../../../rtems/c/src/lib/libbsp/sparc/leon3/../../sparc/shared/amba/ahbstat.c:156:3:
 warning: implicit declaration of function 'printk' [-Wimplicit-function-
 declaration]
 log/sparc-
 leon3.log:../../../../../../../../rtems/c/src/lib/libbsp/sparc/leon3/../../sparc/shared/amba/ahbstat.c:156:3:
 warning: nested extern declaration of 'printk' [-Wnested-externs]
 log/sparc-
 ngmp.log:../../../../../../../../rtems/c/src/lib/libbsp/sparc/leon3/../../sparc/shared/amba/ahbstat.c:156:3:
 warning: implicit declaration of function 'printk' [-Wimplicit-function-
 declaration]
 log/sparc-
 ngmp.log:../../../../../../../../rtems/c/src/lib/libbsp/sparc/leon3/../../sparc/shared/amba/ahbstat.c:156:3:
 warning: nested extern declaration of 'printk' [-Wnested-externs]
 log/sparc-
 leon3.log:../../../../../../../../rtems/c/src/lib/libbsp/sparc/leon3/../../sparc/shared/drvmgr/ambapp_bus.c:647:4:
 warning: implicit declaration of function 'printk' [-Wimplicit-function-
 declaration]
 log/sparc-
 leon3.log:../../../../../../../../rtems/c/src/lib/libbsp/sparc/leon3/../../sparc/shared/drvmgr/ambapp_bus.c:647:4:
 warning: nested extern declaration of 'printk' [-Wnested-externs]
 log/sparc-
 ngmp.log:../../../../../../../../rtems/c/src/lib/libbsp/sparc/leon3/../../sparc/shared/drvmgr/ambapp_bus.c:647:4:
 warning: implicit declaration of function 'printk' [-Wimplicit-function-
 declaration]
 log/sparc-
 ngmp.log:../../../../../../../../rtems/c/src/lib/libbsp/sparc/leon3/../../sparc/shared/drvmgr/ambapp_bus.c:647:4:
 warning: nested extern declaration of 'printk' [-Wnested-externs]
 log/sparc-
 leon3.log:../../../../../../../../rtems/c/src/lib/libbsp/sparc/leon3/../../sparc/shared/irq/genirq.c:244:3:
 warning: implicit declaration of function 'printk' [-Wimplicit-function-
 declaration]
 log/sparc-
 leon3.log:../../../../../../../../rtems/c/src/lib/libbsp/sparc/leon3/../../sparc/shared/irq/genirq.c:244:3:
 warning: nested extern declaration of 'printk' [-Wnested-externs]
 log/sparc-
 ngmp.log:../../../../../../../../rtems/c/src/lib/libbsp/sparc/leon3/../../sparc/shared/irq/genirq.c:244:3:
 warning: implicit declaration of function 'printk' [-Wimplicit-function-
 declaration]
 log/sparc-
 ngmp.log:../../../../../../../../rtems/c/src/lib/libbsp/sparc/leon3/../../sparc/shared/irq/genirq.c:244:3:
 warning: nested extern declaration of 'printk' [-Wnested-externs]
 log/sparc-
 leon3.log:../../../../../../../../rtems/c/src/lib/libbsp/sparc/leon3/../../sparc/shared/spw/grspw_router.c:213:4:
 warning: implicit declaration of function 'printk' [-Wimplicit-function-
 declaration]
 log/sparc-
 leon3.log:../../../../../../../../rtems/c/src/lib/libbsp/sparc/leon3/../../sparc/shared/spw/grspw_router.c:213:4:
 warning: nested extern declaration of 'printk' [-Wnested-externs]
 log/sparc-
 ngmp.log:../../../../../../../../rtems/c/src/lib/libbsp/sparc/leon3/../../sparc/shared/spw/grspw_router.c:213:4:
 warning: implicit declaration of function 'printk' [-Wimplicit-function-
 declaration]
 log/sparc-
 ngmp.log:../../../../../../../../rtems/c/src/lib/libbsp/sparc/leon3/../../sparc/shared/spw/grspw_router.c:213:4:
 warning: nested extern declaration of 'printk' [-Wnested-externs]
 log/sparc-
 leon3.log:../../../../../../../../rtems/c/src/lib/libbsp/sparc/leon3/../../sparc/shared/uart/apbuart.c:574:21:
 warning: format '%x' expects argument of type 'unsigned int', but argument
 2 has type 'apbuart_priv * {aka struct <anonymous> *}' [-Wformat=]
 log/sparc-
 ngmp.log:../../../../../../../../rtems/c/src/lib/libbsp/sparc/leon3/../../sparc/shared/uart/apbuart.c:574:21:
 warning: format '%x' expects argument of type 'unsigned int', but argument
 2 has type 'apbuart_priv * {aka struct <anonymous> *}' [-Wformat=]

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


More information about the bugs mailing list