diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2000-01-04 14:00:38 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2000-01-04 14:00:38 +0000 |
commit | a148f561c2ad6597da2c19d2c83e53969b64f63f (patch) | |
tree | 314c1b99537a7e207a73a3ec916b2f0af5998b8c | |
parent | Removed unitialized variable warning. (diff) | |
download | rtems-a148f561c2ad6597da2c19d2c83e53969b64f63f.tar.bz2 |
Removed warnings.
-rw-r--r-- | c/src/exec/posix/src/mqueueopen.c | 3 | ||||
-rw-r--r-- | c/src/exec/posix/src/mqueueunlink.c | 5 | ||||
-rw-r--r-- | cpukit/posix/src/mqueueopen.c | 3 | ||||
-rw-r--r-- | cpukit/posix/src/mqueueunlink.c | 5 |
4 files changed, 8 insertions, 8 deletions
diff --git a/c/src/exec/posix/src/mqueueopen.c b/c/src/exec/posix/src/mqueueopen.c index 911c74bc2c..28ad7aab6b 100644 --- a/c/src/exec/posix/src/mqueueopen.c +++ b/c/src/exec/posix/src/mqueueopen.c @@ -43,7 +43,7 @@ mqd_t mq_open( { va_list arg; mode_t mode; - struct mq_attr *attr; + struct mq_attr *attr = NULL; int status; Objects_Id the_mq_id; POSIX_Message_queue_Control *the_mq; @@ -51,6 +51,7 @@ mqd_t mq_open( _Thread_Disable_dispatch(); + /* XXX is attr used with out being initialized otherwise? */ if ( oflag & O_CREAT ) { va_start(arg, oflag); mode = (mode_t) va_arg( arg, mode_t ); diff --git a/c/src/exec/posix/src/mqueueunlink.c b/c/src/exec/posix/src/mqueueunlink.c index 6628e09542..4c219eecea 100644 --- a/c/src/exec/posix/src/mqueueunlink.c +++ b/c/src/exec/posix/src/mqueueunlink.c @@ -37,10 +37,9 @@ int mq_unlink( const char *name ) { - int status; + int status; register POSIX_Message_queue_Control *the_mq; - Objects_Id the_mq_id; - Objects_Locations location; + Objects_Id the_mq_id; _Thread_Disable_dispatch(); diff --git a/cpukit/posix/src/mqueueopen.c b/cpukit/posix/src/mqueueopen.c index 911c74bc2c..28ad7aab6b 100644 --- a/cpukit/posix/src/mqueueopen.c +++ b/cpukit/posix/src/mqueueopen.c @@ -43,7 +43,7 @@ mqd_t mq_open( { va_list arg; mode_t mode; - struct mq_attr *attr; + struct mq_attr *attr = NULL; int status; Objects_Id the_mq_id; POSIX_Message_queue_Control *the_mq; @@ -51,6 +51,7 @@ mqd_t mq_open( _Thread_Disable_dispatch(); + /* XXX is attr used with out being initialized otherwise? */ if ( oflag & O_CREAT ) { va_start(arg, oflag); mode = (mode_t) va_arg( arg, mode_t ); diff --git a/cpukit/posix/src/mqueueunlink.c b/cpukit/posix/src/mqueueunlink.c index 6628e09542..4c219eecea 100644 --- a/cpukit/posix/src/mqueueunlink.c +++ b/cpukit/posix/src/mqueueunlink.c @@ -37,10 +37,9 @@ int mq_unlink( const char *name ) { - int status; + int status; register POSIX_Message_queue_Control *the_mq; - Objects_Id the_mq_id; - Objects_Locations location; + Objects_Id the_mq_id; _Thread_Disable_dispatch(); |