Thread (5 messages) flat view 5 messages, 4 authors, 2021-12-10

Re: [PATCH 10/10] reftable: make reftable_record a tagged union

From: Han-Wen Nienhuys <hidden>
Date: 2021-12-08 10:30:25

Possibly related (same subject, not in this thread)

On Wed, Dec 8, 2021 at 5:13 AM Junio C Hamano [off-list ref] wrote:
quoted
quoted
error: ISO C99 doesn't support unnamed structs/unions [-Werror=pedantic]
Hmm. It's interesting that the regular DEVELOPER=1 doesn't catch this.
It's because we don't specify -std there, and newer gcc defaults to
gnu17 (unnamed unions appeared in c11, I think). I wonder if it would be
helpful to teach config.mak.dev to pass -std=c99.
FWIW, I use -std=gnu99 as our Makefile suggests.
I understand that the default build should be lenient rather than
strict for portability reasons. However, it would be good if the CI
was strict with this.

-- 
Han-Wen Nienhuys - Google Munich
I work 80%. Don't expect answers from me on Fridays.
--

Google Germany GmbH, Erika-Mann-Strasse 33, 80636 Munich

Registergericht und -nummer: Hamburg, HRB 86891

Sitz der Gesellschaft: Hamburg

Geschäftsführer: Paul Manicle, Halimah DeLaine Prado
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help