Skip to content
This repository has been archived by the owner on May 29, 2023. It is now read-only.

error: initializer overrides prior initialization of this subobject #48

Open
yurivict opened this issue Aug 26, 2021 · 1 comment
Open

Comments

@yurivict
Copy link

clang-11 says:

In file included from ../include/lucom.h:40:
In file included from ../include/lucurious.h:56:
In file included from ../include/vkcomp/all.h:30:
../include/vkcomp/set.h:561:16: error: initializer overrides prior initialization of this subobject [-Werror,-Winitializer-overrides]
         .color.int32[0] = int32[0], .color.int32[1] = int32[1], .color.int32[2] = int32[2], .color.int32[3] = int32[3],
               ^~~~~~~~~~~~~~~~~~~~
../include/vkcomp/set.h:560:24: note: previous initialization is here
         .color.float32[0] = float32[0], .color.float32[1] = float32[1], .color.float32[2] = float32[2], .color.float32[3] = float32[3],
                       ^~~~~~~~~~~~~~~~
../include/vkcomp/set.h:562:16: error: initializer overrides prior initialization of this subobject [-Werror,-Winitializer-overrides]
         .color.uint32[0] = uint32[0], .color.uint32[1] = uint32[1], .color.uint32[2] = uint32[2], .color.uint32[3] = uint32[3],
               ^~~~~~~~~~~~~~~~~~~~~~
../include/vkcomp/set.h:561:22: note: previous initialization is here
         .color.int32[0] = int32[0], .color.int32[1] = int32[1], .color.int32[2] = int32[2], .color.int32[3] = int32[3],
                     ^~~~~~~~~~~~~~
../include/vkcomp/set.h:563:9: error: initializer overrides prior initialization of this subobject [-Werror,-Winitializer-overrides]
        .depthStencil.depth = depth, .depthStencil.stencil = stencil
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/vkcomp/set.h:560:16: note: previous initialization is here
         .color.float32[0] = float32[0], .color.float32[1] = float32[1], .color.float32[2] = float32[2], .color.float32[3] = float32[3],
               ^~~~~~~~~~~~~~~~~~~~~~~~
3 errors generated.
@EasyIP2023
Copy link
Owner

@yurivict There's a far better implementation that I've been working on here.

https://github.com/under-view/kmsroots

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants