diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-02-10 18:08:49 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-02-10 18:08:49 -0600 |
commit | 6db1f6f71c8867cbae3a2c5597b01f321064a370 (patch) | |
tree | bd0b760c6467a0b528b7b29480f944c99c186693 /nuttx/arch/avr | |
parent | 07d355e8f77afbc04ea94089071b0154e747acec (diff) | |
download | nuttx-6db1f6f71c8867cbae3a2c5597b01f321064a370.tar.gz nuttx-6db1f6f71c8867cbae3a2c5597b01f321064a370.tar.bz2 nuttx-6db1f6f71c8867cbae3a2c5597b01f321064a370.zip |
Many changes to reduce complaints from CppCheck. Several latent bugs fixes, but probably some new typos introduced
Diffstat (limited to 'nuttx/arch/avr')
-rw-r--r-- | nuttx/arch/avr/src/avr/up_checkstack.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/nuttx/arch/avr/src/avr/up_checkstack.c b/nuttx/arch/avr/src/avr/up_checkstack.c index 6ff0db083..07b1f9d14 100644 --- a/nuttx/arch/avr/src/avr/up_checkstack.c +++ b/nuttx/arch/avr/src/avr/up_checkstack.c @@ -82,7 +82,10 @@ size_t up_check_tcbstack(FAR struct tcb_s *tcb) { FAR uint8_t *ptr; size_t mark; - int i, j; +#if 0 + int i; + int j; +#endif /* The AVR uses a push-down stack: the stack grows toward lower addresses * in memory. We need to start at the lowest address in the stack memory @@ -121,8 +124,10 @@ size_t up_check_tcbstack(FAR struct tcb_s *tcb) { ch = 'X'; } + up_putc(ch); } + up_putc('\n'); } } |