Thread (1 message) 1 message, 1 author, 2025-08-12

Re: [PATCH 3/5] reftable/stack: fix compiler warning due to missing braces

From: Junio C Hamano <hidden>
Date: 2025-08-12 14:37:21

Patrick Steinhardt [off-list ref] writes:
quoted
I think the suggestion for using a shim layer solution is relevant, because
additionally to the compatibility issues of the zero initializer, you also
need to take into consideration that the proposed solution will still trigger
warnings when compiled as C++ (where {0} should be instead {}).
Do we even support compiling Git as C++?
There was an earlier effort to rename variables like "new", but I
think the motivation was more like some folks wanted to try building
with C++ compilers.  I do not know what the outcome of it was.

But people like to disect and include pieces of useful and/or
popular software in their programs within the limitation of how the
original is licensed.  Especially a part well libified like reftable
may be a good candidate.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help