Search found 4 matches
- Fri Sep 17, 2021 11:01 am
- Forum: ESP-IDF 中文讨论版
- Topic: [已解决] cc1.exe: some warnings being treated as errors
- Replies: 5
- Views: 6580
Re: cc1.exe: some warnings being treated as errors
好的好的 再次感谢您 预祝中秋快乐!!
- Thu Sep 16, 2021 11:10 am
- Forum: ESP-IDF 中文讨论版
- Topic: [已解决] cc1.exe: some warnings being treated as errors
- Replies: 5
- Views: 6580
Re: cc1.exe: some warnings being treated as errors
有一个疑问哈:这样忽略警告的方式 通过编译 算不算作弊呀 对程序的长期运行有影响吗
- Thu Sep 16, 2021 11:08 am
- Forum: ESP-IDF 中文讨论版
- Topic: [已解决] cc1.exe: some warnings being treated as errors
- Replies: 5
- Views: 6580
Re: cc1.exe: some warnings being treated as errors
对的 component添加库的 按你的方式已经成功忽略了警告,编译通过了。十分感谢你!!!!
- Mon Sep 13, 2021 11:01 am
- Forum: ESP-IDF 中文讨论版
- Topic: [已解决] cc1.exe: some warnings being treated as errors
- Replies: 5
- Views: 6580
[已解决] cc1.exe: some warnings being treated as errors
描述:从STM32移植QRCODE库到ESP32,编译报错:警告被当做错误处理。
环境:1.windows7,编译器是eclipse (QRCODE库在KEIL上编译和运行没问题);
2.SDK是esp-idf-v4.3(无分支);
3.硬件ESP32-WROVER-IE。
补充说明:报错处是个 带嵌套的一维结构体数组,(error: missing braces around initializer [-Werror=missing-braces])详见下图。
请教:1.能否消除这个警告? 2.如不能消除 如何忽略这个警告?
环境:1.windows7,编译器是eclipse (QRCODE库在KEIL上编译和运行没问题);
2.SDK是esp-idf-v4.3(无分支);
3.硬件ESP32-WROVER-IE。
补充说明:报错处是个 带嵌套的一维结构体数组,(error: missing braces around initializer [-Werror=missing-braces])详见下图。
请教:1.能否消除这个警告? 2.如不能消除 如何忽略这个警告?