From a148f561c2ad6597da2c19d2c83e53969b64f63f Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 4 Jan 2000 14:00:38 +0000 Subject: Removed warnings. --- c/src/exec/posix/src/mqueueopen.c | 3 ++- c/src/exec/posix/src/mqueueunlink.c | 5 ++--- cpukit/posix/src/mqueueopen.c | 3 ++- 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(); -- cgit v1.2.3