如何在Clang ++ 9.0.1中禁用“声明不声明任何内容[-Werror,-Wmissing-declarations]”警告?

问题描述

这是令人反感的代码:

struct THISISASTRUCT
{
public:
        union
        {
                struct
                {
                };
                uint8_t THISISANESTEDEMPTYSTRUCT[1];
        };

public:
};

添加-Wmissing-declarations标志不会执行任何操作。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)