Warning[Pa082]: undefined behavior: the order of volatile accesses is undefined in this statement
Warning[Pa082]: undefined behavior: the order of volatile accesses is undefined in this statement
运算符两边都是volatile变量的警告
这警告有意义.
用volatile修饰的变量一般不直接参与运算,volatile就以为这个变量在运算过程中有可能已经改变了
转载
2016-04-24 11:34:15 ·
1368 阅读 ·
0 评论