On Tue Sep 12 14:53:39 2023 +0000, Jacek Caban wrote:
I'm not sure how portable it is, it causes a warning on clang: https://godbolt.org/z/x8Y7veEYj It doesn't seem very useful for style object's `query_interface` in the first place (through I guess that you planned to use something like that for nodes as well).
Yeah I planned to do something similar for nodes. It seems it's portable and well defined by the standard, although GCC has some bugs with nested structs' partial re-initialization (we don't do that here though, so it's not relevant) and Clang ironically gets it correctly according to the standard, even though it warns.
I think the warnings are overzealous and probably just made to catch mistakes, but otherwise warn on well-defined standard (and useful) behavior, we could disable them with `-Wno-override-init` and `-Wno-initializer-overrides` if we find the need, IMO.
But I'll just skip the overriding for the moment, since it's not important for CSS styles.