Skip to content

Commit

Permalink
toolchain/ghs: ioexpander_dev_s "declaration is not visible outside o…
Browse files Browse the repository at this point in the history
…f function" warning

CC:  serial/serial_io.c "/mnt/yang/qixinwei_vela_warnings_04_23/nuttx/include/nuttx/power/regulator.h", line 227: warning #231-D:
          declaration is not visible outside of function
  int regulator_gpio_init(FAR struct ioexpander_dev_s *iodev,

Signed-off-by: yanghuatao <[email protected]>
  • Loading branch information
yanghuatao authored and xiaoxiang781216 committed Aug 26, 2024
1 parent edce454 commit 91e341d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/nuttx/power/regulator.h
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ void regulator_unregister(FAR struct regulator_dev_s *rdev);
*
****************************************************************************/

struct ioexpander_dev_s;
int regulator_gpio_init(FAR struct ioexpander_dev_s *iodev,
FAR const struct regulator_desc_s *desc);

Expand Down

0 comments on commit 91e341d

Please sign in to comment.