硬汉嵌入式论坛

 找回密码
 立即注册
查看: 435|回复: 2
收起左侧

[IAR] IAR中,Pa082警告如何抑制啊?

[复制链接]

86

主题

550

回帖

808

积分

金牌会员

积分
808
发表于 2025-3-25 13:02:03 | 显示全部楼层 |阅读模式
在iar中定义三个变量:
volatile uint16_t a,b,c;
a = b + c;
编译的时候,会提示Warning[Pa082]: undefined behavior: the order of volatile accesses is undefined in this statement,, 如何抑制这个警告啊,我在link的SuppressDiags中输入Pa082, 在编译的时候提示[Ms001]: diagnostic tag "Pa082" does not exist,,这是编译器的bug吗?  
回复

使用道具 举报

3

主题

90

回帖

99

积分

初级会员

积分
99
发表于 2025-3-25 14:59:54 | 显示全部楼层
编译警告,应该是在Compiler的Diagnostics里设置吧?
回复

使用道具 举报

86

主题

550

回帖

808

积分

金牌会员

积分
808
 楼主| 发表于 2025-3-25 15:02:56 | 显示全部楼层
qinfeng173 发表于 2025-3-25 14:59
编译警告,应该是在Compiler的Diagnostics里设置吧?

这个没想到呢,感谢提醒
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋|Archiver|手机版|硬汉嵌入式论坛

GMT+8, 2025-8-12 09:27 , Processed in 0.037570 second(s), 23 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表