summaryrefslogtreecommitdiff
path: root/components/libc
diff options
context:
space:
mode:
authorzhkag <[email protected]>2023-01-06 02:10:14 +0000
committerguo <[email protected]>2023-01-09 09:32:07 +0800
commit1730874cd89a5c86d178dab92030227c8820223a (patch)
tree7eae4836e8f555dd069e840f195ffe7ad17ce7ce /components/libc
parenta15a5b19a4bc85f2485dbedbdfcea39b22805aed (diff)
简单赋值防止数据被优化
Diffstat (limited to 'components/libc')
-rw-r--r--components/libc/posix/ipc/mqueue.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/components/libc/posix/ipc/mqueue.c b/components/libc/posix/ipc/mqueue.c
index c764036455..8cbe440c9f 100644
--- a/components/libc/posix/ipc/mqueue.c
+++ b/components/libc/posix/ipc/mqueue.c
@@ -127,6 +127,7 @@ mqd_t mq_open(const char *name, int oflag, ...)
mode = (mode_t)va_arg(arg, unsigned int);
mode = mode;
attr = (struct mq_attr *)va_arg(arg, struct mq_attr *);
+ attr = attr;
va_end(arg);
if (oflag & O_EXCL)