summaryrefslogtreecommitdiffstats
path: root/c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1997-04-07 21:24:02 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1997-04-07 21:24:02 +0000
commitd6ba279565aa135cfce8d622c3b82b7609eef31b (patch)
treea9f9e65c0b59c0edd4197f66162697e4ae674b23 /c
parentadded include of unistd.h to eliminate warning for no prototype for write(). (diff)
downloadrtems-d6ba279565aa135cfce8d622c3b82b7609eef31b.tar.bz2
added initialization of variable to eliminate warning.
Diffstat (limited to 'c')
-rw-r--r--c/src/exec/score/cpu/unix/cpu.c2
-rw-r--r--c/src/lib/libbsp/i960/cvme961/include/bsp.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/c/src/exec/score/cpu/unix/cpu.c b/c/src/exec/score/cpu/unix/cpu.c
index 7a52c1b78b..ffa5a1385c 100644
--- a/c/src/exec/score/cpu/unix/cpu.c
+++ b/c/src/exec/score/cpu/unix/cpu.c
@@ -817,7 +817,7 @@ void _CPU_SHM_Init(
char *shm_addr;
key_t shm_key;
key_t sem_key;
- int status;
+ int status = 0; /* to avoid unitialized warnings */
int shm_size;
if (getenv("RTEMS_SHM_KEY"))
diff --git a/c/src/lib/libbsp/i960/cvme961/include/bsp.h b/c/src/lib/libbsp/i960/cvme961/include/bsp.h
index 9b6caab59d..08fdbce174 100644
--- a/c/src/lib/libbsp/i960/cvme961/include/bsp.h
+++ b/c/src/lib/libbsp/i960/cvme961/include/bsp.h
@@ -62,7 +62,7 @@ extern "C" {
#define delay( microseconds ) \
{ register rtems_unsigned32 _delay=(microseconds); \
- register rtems_unsigned32 _tmp; \
+ register rtems_unsigned32 _tmp = 0; /* initialized to avoid warning */ \
asm volatile( "0: \
remo 3,31,%0 ; \
cmpo 0,%0 ; \