mirror of
https://github.com/apache/nuttx.git
synced 2026-02-07 05:12:09 +08:00
string/lib_memmove.c:39:1: warning: optimization attribute on 'memmove' follows definition but the attribute doesn't match [-Wattributes]
39 | {
| ^
In file included from string/lib_memmove.c:27:
nuttx/include/string.h:177:37: note: previous definition of 'memmove' with type 'void *(void *, const void *, size_t)' {aka 'void *(void *, const void *, unsigned int)'}
177 | fortify_function(memmove) FAR void *memmove(FAR void *dest,
| ^~~~~~~
string/lib_memset.c:55:1: warning: optimization attribute on 'memset' follows definition but the attribute doesn't match [-Wattributes]
55 | {
| ^
In file included from string/lib_memset.c:30:
nuttx/include/string.h:194:36: note: previous definition of 'memset' with type 'void *(void *, int, size_t)' {aka 'void *(void *, int, unsigned int)'}
194 | fortify_function(memset) FAR void *memset(FAR void *s, int c, size_t n)
| ^~~~~~
CC: unistd/lib_sysconf.c string/lib_memcpy.c:43:1: warning: optimization attribute on 'memcpy' follows definition but the attribute doesn't match [-Wattributes]
43 | {
| ^
In file included from string/lib_memcpy.c:27:
nuttx/include/string.h:186:36: note: previous definition of 'memcpy' with type 'void *(void *, const void *, size_t)' {aka 'void *(void *, const void *, unsigned int)'}
186 | fortify_function(memcpy) FAR void *memcpy(FAR void *dest,
|
Signed-off-by: chao an <anchao@xiaomi.com>