File: | /home/joel/rtems-4.11-work/build/rtems/c/src/../../cpukit/libcsupport/src/putk.c |
Location: | line 25, column 15 |
Description: | Value stored to 'p' during its initialization is never read |
1 | /* |
2 | * COPYRIGHT (c) 1989-2007. |
3 | * On-Line Applications Research Corporation (OAR). |
4 | * |
5 | * The license and distribution terms for this file may be |
6 | * found in the file LICENSE in this distribution or at |
7 | * http://www.rtems.com/license/LICENSE. |
8 | * |
9 | * $Id: putk.c,v 1.2 2009/11/29 13:35:32 ralf Exp $ |
10 | */ |
11 | |
12 | #if HAVE_CONFIG_H1 |
13 | #include "config.h" |
14 | #endif |
15 | |
16 | #include <rtems/bspIo.h> |
17 | |
18 | /* |
19 | * putk |
20 | * |
21 | * Kernel putk (e.g. puts) function requiring minimal infrastrure. |
22 | */ |
23 | void putk(const char *s) |
24 | { |
25 | const char *p = s; |
Value stored to 'p' during its initialization is never read | |
26 | |
27 | for (p=s ; *p ; p++ ) |
28 | BSP_output_char(*p); |
29 | BSP_output_char('\n'); |
30 | } |