用mingw,用的是第三方文件。编译提示:taking address of temporary array。
网上搜了下,说是MSVC是支持的。
请教大家:我可以怎么修改。谢谢
const bool* lut;
switch(intf) {
case PLR_INTF_LRX: lut = (bool[]){[1] = false, [2] = false, [3] = false, [4] = false}; break;
case PLR_INTF_LTX: lut = (bool[]){[1] = false, [2] = false, [3] = false, [4] = false, [5] = false}; break;
case PLR_INTF_HRX: lut = (bool[]){[1] = false, [2] = false, [3] = false, [4] = false}; break;
case PLR_INTF_HTX: lut = (bool[]){[1] = false, [2] = false, [3] = false, [4] = false}; break;
default: goto fail;
}
--
FROM 58.215.12.*