提问人:markzzz 提问时间:11/6/2023 更新时间:11/6/2023 访问量:42
如何在模板上使用__m128来抑制警告 -Wignored-attributes?
How to suppress warning -Wignored-attributes using __m128 on templates?
问:
我有这个基本代码:
#include <iostream>
#include <emmintrin.h>
template <typename T>
struct SRCDecimator {
SRCDecimator() {
}
};
int main()
{
SRCDecimator<__m128> srcDecimator4;
}
输出此警告:
警告:忽略模板参数“__m128”上的属性 [-Wignored-attributes]
问题是:
- 这个“常见类型”警告的原因是什么?
- 如何禁止显示该警告?不确定我是否可以更改本机__m128对象
谢谢
答: 暂无答案
评论