Re: [PATCH] files-backend.c: fix build error on Solaris
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Nov 26, 2018, 04:44 UTC
- Message-ID
- <xmqqin0kzbug.fsf@gitster-ct.c.googlers.com>
- In-Reply-To
- <CAPUEsphe9eXk8zLE35iRq-M9a-tukj8APQ0gHzR6PHfNZNLxLA@mail.gmail.com>
Carlo Arenas <carenas@gmail.com> writes:
> Signed-off-by: Carlo Marcelo Arenas Belón <carenas@gmail.com>
Do you mean Tested-by: (meaning, you actually saw the breakage with SunCC without the patch and also saw the patch fixed the breakage)?
> clang with -Wpedantic also catch this (at least with Apple LLVM > version 10.0.0); recent versions of gcc also include that flag and at > least 8.2.0 shows a warning for it, so it might be worth adding it to > developer mode (maybe under the pedantic DEVOPTS).
Nice to know.
> ..., would this be something I should be adding?, what are the expectations around > warnings and compilers?
It may be a worthwhile thing to discuss, and as a discussion starter, a patch would help ;-).