Another GCC 6 & Rawhide build failure

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



First the C++ code:

namespace Amanith {

struct GNamedSVGcolor {
        GChar8 Name[22];
        GVector4 RGBA;
};

static const GNamedSVGcolor SVGColors[147] = {

        { "aliceblue", GVector4(0.941, 0.973, 1.000, 1.000) },
        { "antiquewhite", GVector4(0.980, 0.922, 0.843, 1.000) },
        { "aqua", GVector4(0.000, 1.000, 1.000, 1.000) },
        { "aquamarine", GVector4(0.498, 1.000, 0.831, 1.000) },
        { "azure", GVector4(0.941, 1.000, 1.000, 1.000) },
        { "beige", GVector4(0.961, 0.961, 0.863, 1.000) },
        { "bisque", GVector4(1.000, 0.894, 0.769, 1.000) },
        { "black", GVector4(0.000, 0.000, 0.000, 1.000) },
        { "blanchedalmond", GVector4(1.000, 0.922, 0.804, 1.000) },
...
        { "yellowgreen", GVector4(0.604, 0.804, 0.196, 1.000) }
};

// Yes, it initializes all elements of the SVGColors[147].

}

******

Now, the GCC 6 errors:

../src/rendering/gopenglboard.cpp:280:1: error: C99 designator
'Amanith::GNamedSVGcolor::Name' outside aggregate initializer
 };
 ^
../src/rendering/gopenglboard.cpp:280:1: error: C99 designator
'Amanith::GNamedSVGcolor::Name' outside aggregate initializer
(This repeats 146 more times)

Ideas?

~tom

==
Red Hat
--
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
http://lists.fedoraproject.org/admin/lists/devel@xxxxxxxxxxxxxxxxxxxxxxx




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux