Don't use anonymous types declared in an anonymous union

At least clang is unhappy with them when -Wnested-anon-types is enabled.

Change-Id: Ia9869fecb836b27be69f7b9715fd614f384bb912
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
This commit is contained in:
Liang Qi 2015-04-19 01:07:51 +02:00
parent fe7f4a6d85
commit b31e98d477

View File

@ -40,13 +40,15 @@
QT_BEGIN_NAMESPACE
class QRgba64 {
union {
struct {
struct qrgba_t {
quint16 red;
quint16 green;
quint16 blue;
quint16 alpha;
} c;
};
union {
struct qrgba_t c;
quint64 rgba;
};
public: