Skip to content

Commit

Permalink
fix compile warning
Browse files Browse the repository at this point in the history
libs/libc/locale/lib_catalog.c:197:9: warning: implicit declaration of function ‘lib_get_pathbuffer’ [-Wimplicit-function-declaration]
  197 |   buf = lib_get_pathbuffer();
      |         ^~~~~~~~~~~~~~~~~~
libs/libc/locale/lib_catalog.c:197:7: warning: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
  197 |   buf = lib_get_pathbuffer();
      |       ^
libs/libc/locale/lib_catalog.c:294:13: warning: implicit declaration of function ‘lib_put_pathbuffer’ [-Wimplicit-function-declaration]
  294 |             lib_put_pathbuffer(buf);

Signed-off-by: zhangshoukui <[email protected]>
  • Loading branch information
Zhangshoukui authored and crafcat7 committed Nov 5, 2024
1 parent 6d41208 commit b96d327
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libs/libc/locale/lib_catalog.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
#include <sys/stat.h>
#include <unistd.h>

#include <nuttx/lib/lib.h>

#ifdef CONFIG_LIBC_LOCALE_CATALOG

/****************************************************************************
Expand Down

0 comments on commit b96d327

Please sign in to comment.