简单赋值防止数据被优化

This commit is contained in:
zhkag 2023-01-06 02:10:14 +00:00 committed by guo
parent a15a5b19a4
commit 1730874cd8
1 changed files with 1 additions and 0 deletions

View File

@ -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)