Przeglądaj źródła

简单赋值防止数据被优化

zhkag 2 lat temu
rodzic
commit
1730874cd8
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      components/libc/posix/ipc/mqueue.c

+ 1 - 0
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)