mirror of
https://github.com/apache/nuttx.git
synced 2026-05-26 02:36:11 +08:00
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:
@@ -36,6 +36,8 @@
|
||||
#include <sys/stat.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include <nuttx/lib/lib.h>
|
||||
|
||||
#ifdef CONFIG_LIBC_LOCALE_CATALOG
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
Reference in New Issue
Block a user