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;
|
va_list arg;
|
||||||
mode_t mode;
|
mode_t mode;
|
||||||
struct mq_attr *attr;
|
struct mq_attr *attr = NULL;
|
||||||
int status;
|
int status;
|
||||||
Objects_Id the_mq_id;
|
Objects_Id the_mq_id;
|
||||||
POSIX_Message_queue_Control *the_mq;
|
POSIX_Message_queue_Control *the_mq;
|
||||||
@@ -51,6 +51,7 @@ mqd_t mq_open(
|
|||||||
|
|
||||||
_Thread_Disable_dispatch();
|
_Thread_Disable_dispatch();
|
||||||
|
|
||||||
|
/* XXX is attr used with out being initialized otherwise? */
|
||||||
if ( oflag & O_CREAT ) {
|
if ( oflag & O_CREAT ) {
|
||||||
va_start(arg, oflag);
|
va_start(arg, oflag);
|
||||||
mode = (mode_t) va_arg( arg, mode_t );
|
mode = (mode_t) va_arg( arg, mode_t );
|
||||||
|
|||||||
@@ -37,10 +37,9 @@ int mq_unlink(
|
|||||||
const char *name
|
const char *name
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
int status;
|
int status;
|
||||||
register POSIX_Message_queue_Control *the_mq;
|
register POSIX_Message_queue_Control *the_mq;
|
||||||
Objects_Id the_mq_id;
|
Objects_Id the_mq_id;
|
||||||
Objects_Locations location;
|
|
||||||
|
|
||||||
_Thread_Disable_dispatch();
|
_Thread_Disable_dispatch();
|
||||||
|
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ mqd_t mq_open(
|
|||||||
{
|
{
|
||||||
va_list arg;
|
va_list arg;
|
||||||
mode_t mode;
|
mode_t mode;
|
||||||
struct mq_attr *attr;
|
struct mq_attr *attr = NULL;
|
||||||
int status;
|
int status;
|
||||||
Objects_Id the_mq_id;
|
Objects_Id the_mq_id;
|
||||||
POSIX_Message_queue_Control *the_mq;
|
POSIX_Message_queue_Control *the_mq;
|
||||||
@@ -51,6 +51,7 @@ mqd_t mq_open(
|
|||||||
|
|
||||||
_Thread_Disable_dispatch();
|
_Thread_Disable_dispatch();
|
||||||
|
|
||||||
|
/* XXX is attr used with out being initialized otherwise? */
|
||||||
if ( oflag & O_CREAT ) {
|
if ( oflag & O_CREAT ) {
|
||||||
va_start(arg, oflag);
|
va_start(arg, oflag);
|
||||||
mode = (mode_t) va_arg( arg, mode_t );
|
mode = (mode_t) va_arg( arg, mode_t );
|
||||||
|
|||||||
@@ -37,10 +37,9 @@ int mq_unlink(
|
|||||||
const char *name
|
const char *name
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
int status;
|
int status;
|
||||||
register POSIX_Message_queue_Control *the_mq;
|
register POSIX_Message_queue_Control *the_mq;
|
||||||
Objects_Id the_mq_id;
|
Objects_Id the_mq_id;
|
||||||
Objects_Locations location;
|
|
||||||
|
|
||||||
_Thread_Disable_dispatch();
|
_Thread_Disable_dispatch();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user