[RTEMS Project] #4942: Regulator warnings

RTEMS trac trac at rtems.org
Fri Aug 11 22:31:00 UTC 2023


#4942: Regulator warnings
--------------------------+---------------------------
  Reporter:  Chris Johns  |      Owner:  Joel Sherrill
      Type:  defect       |     Status:  assigned
  Priority:  normal       |  Milestone:  6.1
 Component:  lib          |    Version:  6
  Severity:  normal       |   Keywords:
Blocked By:               |   Blocking:
--------------------------+---------------------------
 The recently added `regulator` has warnings on
 `aarch64/xilinx_zynqmp_lp64_qemu`:

 {{{
 ../../../cpukit/libmisc/regulator/regulator.c: In function
 'rtems_regulator_get_statistics':
 ../../../cpukit/libmisc/regulator/regulator.c:656:3: warning: implicit
 declaration of function 'memset' [-Wimplicit-function-declaration]
   656 |   memset(statistics, 0, sizeof(rtems_regulator_statistics));
       |   ^~~~~~
 ../../../cpukit/libmisc/regulator/regulator.c:40:1: note: include
 '<string.h>' or provide a declaration of 'memset'
    39 | #include <rtems/regulatorimpl.h>
   +++ |+#include <string.h>
    40 |
 ../../../cpukit/libmisc/regulator/regulator.c:656:3: warning: incompatible
 implicit declaration of built-in function 'memset' [-Wbuiltin-declaration-
 mismatch]
   656 |   memset(statistics, 0, sizeof(rtems_regulator_statistics));
       |   ^~~~~~
 ../../../cpukit/libmisc/regulator/regulator.c:656:3: note: include
 '<string.h>' or provide a declaration of 'memset'

 }}}

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


More information about the bugs mailing list