Mercurial > nand-ecoscentric
changeset 2613:e19a7a6154d0
* include/thread.inl: Silence some warnings by assigning
string literals to const char *, not char *.
| author | jlarmour |
|---|---|
| date | Tue, 11 Nov 2008 04:31:57 +0000 |
| parents | f5eb2b5ff37d |
| children | 6cbecf3cc2e4 |
| files | packages/kernel/current/ChangeLog packages/kernel/current/include/thread.inl |
| diffstat | 2 files changed, 9 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/packages/kernel/current/ChangeLog +++ b/packages/kernel/current/ChangeLog @@ -1,3 +1,8 @@ +2008-07-24 Jonathan Larmour <jifl@eCosCentric.com> + + * include/thread.inl: Silence some warnings by assigning + string literals to const char *, not char *. + 2007-08-23 Hans Rosenfeld <rosenfeld@grumpf.hope-2000.org> * tests/intr0.cxx, tests/kintr0.c: As suggested by Bart Veer,
--- a/packages/kernel/current/include/thread.inl +++ b/packages/kernel/current/include/thread.inl @@ -13,6 +13,7 @@ // This file is part of eCos, the Embedded Configurable Operating System. // Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc. // Copyright (C) 2003 Gary Thomas +// Copyright (C) 2008 eCosCentric Limited // // eCos is free software; you can redistribute it and/or modify it under // the terms of the GNU General Public License as published by the Free @@ -113,13 +114,13 @@ inline void Cyg_HardwareThread::check_st i < CYGNUM_KERNEL_THREADS_STACK_CHECK_DATA_SIZE/sizeof(cyg_uint32); i++ ) { if ((sig ^ (i * 0x01010101)) != base[i]) { - char *reason = "Stack base corrupt"; + const char *reason = "Stack base corrupt"; diag_printf("%s - i: %d\n", reason, i); diag_dump_buf(base, CYGNUM_KERNEL_THREADS_STACK_CHECK_DATA_SIZE); CYG_FAIL(reason); } if ((sig ^ (i * 0x10101010)) != top[i]) { - char *reason = "Stack top corrupt"; + const char *reason = "Stack top corrupt"; diag_printf("%s - i: %d\n", reason, i); diag_dump_buf(top, CYGNUM_KERNEL_THREADS_STACK_CHECK_DATA_SIZE); CYG_FAIL(reason); @@ -143,7 +144,7 @@ inline void Cyg_HardwareThread::check_st i < CYGNUM_KERNEL_THREADS_STACK_CHECK_DATA_SIZE/sizeof(cyg_uint32); i++ ) { if ((sig ^ (i * 0x01010101)) != p[i]) { - char *reason = "Gap between stack limit and base corrupt"; + const char *reason = "Gap between stack limit and base corrupt"; diag_printf("%s - i: %d\n", reason, i); diag_dump_buf(p, CYGNUM_KERNEL_THREADS_STACK_CHECK_DATA_SIZE); CYG_FAIL(reason);
