mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 15:15:44 +00:00
Removed warnings.
This commit is contained in:
@@ -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 );
|
||||
|
||||
@@ -40,7 +40,6 @@ int mq_unlink(
|
||||
int status;
|
||||
register POSIX_Message_queue_Control *the_mq;
|
||||
Objects_Id the_mq_id;
|
||||
Objects_Locations location;
|
||||
|
||||
_Thread_Disable_dispatch();
|
||||
|
||||
|
||||
@@ -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 );
|
||||
|
||||
@@ -40,7 +40,6 @@ int mq_unlink(
|
||||
int status;
|
||||
register POSIX_Message_queue_Control *the_mq;
|
||||
Objects_Id the_mq_id;
|
||||
Objects_Locations location;
|
||||
|
||||
_Thread_Disable_dispatch();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user