Re: [PATCH 0/2] fsmonitor: fixup to avoid warnings from pedantic

2 messages, 2 authors, 2021-08-28 · open the first message on its own page

Re: [PATCH 0/2] fsmonitor: fixup to avoid warnings from pedantic

From: Junio C Hamano <hidden>
Date: 2021-08-27 17:11:28

Carlo Arenas [off-list ref] writes:
On Thu, Aug 26, 2021 at 10:37 PM Junio C Hamano [off-list ref] wrote:
quoted
Here is what I had to do to work around

 https://github.com/git/git/runs/3438543601?check_suite_focus=true#step:5:136
correct; that was 1/2 of the fixups I proposed and were waiting for the reroll.

interesting that the job was able to build without 2/2[1] but it might
be because clang is even more pedantic.

Carlo

[1] https://lore.kernel.org/git/20210809063004.73736-3-carenas@gmail.com/
One thing I noticed is that simple-ipc.h can disable itself
altogether with "#ifdef SUPPORTS_SIMPLE_IPC", so the unconditional
use of "enum ipc_active_state" by fsmonitor-ipc.h would still be a
problem.  fsmonitor-ipc.h is included even in help.c so it seems
that with this topic, you practically will not get a working Git at
all with -pedantic when SUPPORTS_SIMPLE_IPC is not true.

Re: [PATCH 0/2] fsmonitor: fixup to avoid warnings from pedantic

From: Carlo Arenas <hidden>
Date: 2021-08-28 09:46:11

On Fri, Aug 27, 2021 at 10:11 AM Junio C Hamano [off-list ref] wrote:
One thing I noticed is that simple-ipc.h can disable itself
altogether with "#ifdef SUPPORTS_SIMPLE_IPC", so the unconditional
use of "enum ipc_active_state" by fsmonitor-ipc.h would still be a
problem.
That is why we also need an additional patch[1] to be able to build
(at least in macOS).

in windows additional changes are required, but I suspect that
configuration is probably not expected.
fsmonitor-ipc.h is included even in help.c so it seems
that with this topic, you practically will not get a working Git at
all with -pedantic when SUPPORTS_SIMPLE_IPC is not true.
not sure if I understand the logic here, but there is a "mock" daemon
that is used in the platforms that don't have support that will be
available then (even if it just refuses to start), and that is still
IMHO a working git configuration.

Carlo

[1] https://lore.kernel.org/git/20210817082310.2157-1-carenas@gmail.com/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help