added initialization of variable to eliminate warning.

This commit is contained in:
Joel Sherrill
1997-04-07 21:24:02 +00:00
parent 0b508554a8
commit d6ba279565
3 changed files with 3 additions and 3 deletions

View File

@@ -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"))

View File

@@ -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 ; \

View File

@@ -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"))