You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by pk...@apache.org on 2022/06/07 08:10:03 UTC
[incubator-nuttx] branch master updated: libc:xtensa:arch_memmove: fix warning
This is an automated email from the ASF dual-hosted git repository.
pkarashchenko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 3455002ffd libc:xtensa:arch_memmove: fix warning
3455002ffd is described below
commit 3455002ffd7fa293cf409420caac22ecfafcdaa3
Author: zhuyanlin <zh...@xiaomi.com>
AuthorDate: Wed Feb 16 18:36:11 2022 +0800
libc:xtensa:arch_memmove: fix warning
warning: 'SIM_CHECKS_ALIGNMENT' macro redefined
[-Wmacro-redefined] #define SIM_CHECKS_ALIGNMENT 1
Signed-off-by: zhuyanlin <zh...@xiaomi.com>
---
libs/libc/machine/xtensa/arch_memmove.S | 1 +
1 file changed, 1 insertion(+)
diff --git a/libs/libc/machine/xtensa/arch_memmove.S b/libs/libc/machine/xtensa/arch_memmove.S
index 7ce56c47b7..f3a1d89b68 100644
--- a/libs/libc/machine/xtensa/arch_memmove.S
+++ b/libs/libc/machine/xtensa/arch_memmove.S
@@ -396,6 +396,7 @@ memmove:
_beqz a4, .Lbackdone # avoid loading anything for zero-length copies
# copy 16 bytes per iteration for word-aligned dst and unaligned src
ssa8 a3 # set shift amount from byte offset
+#undef SIM_CHECKS_ALIGNMENT
#define SIM_CHECKS_ALIGNMENT 1 /* set to 1 when running on ISS with
* the lint or ferret client, or 0
* to save a few cycles */