fix compile warning

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 <zhangshoukui@xiaomi.com>
This commit is contained in:
zhangshoukui 2024-10-30 15:53:47 +08:00 committed by Xiang Xiao
parent 2cf26036a5
commit 50e89a54cb

View file

@ -36,6 +36,8 @@
#include <sys/stat.h>
#include <unistd.h>
#include <nuttx/lib/lib.h>
#ifdef CONFIG_LIBC_LOCALE_CATALOG
/****************************************************************************