git-commit-vandalism/reftable
Ævar Arnfjörð Bjarmason 33665d98e6 reftable: make assignments portable to AIX xlc v12.01
Change the assignment syntax introduced in 66c0dabab5 (reftable: make
reftable_record a tagged union, 2022-01-20) to be portable to AIX xlc
v12.1:

    avar@gcc111:[/home/avar]xlc -qversion
    IBM XL C/C++ for AIX, V12.1 (5765-J02, 5725-C72)
    Version: 12.01.0000.0000

The error emitted before this was e.g.:

    "reftable/generic.c", line 133.26: 1506-196 (S) Initialization
    between types "char*" and "struct reftable_ref_record" is not
    allowed.

The syntax in the pre-image is supported by e.g. xlc 13.01 on a newer
AIX version:

    avar@gcc119:[/home/avar]xlc -qversion
    IBM XL C/C++ for AIX, V13.1.3 (5725-C72, 5765-J07)
    Version: 13.01.0003.0006

But as we've otherwise supported this compiler let's not break it
entirely if it's easy to work around it.

Suggested-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2022-03-28 13:58:10 -07:00
..
basics_test.c
basics.c
basics.h
block_test.c reftable: avoid writing empty keys at the block layer 2022-02-23 13:36:26 -08:00
block.c reftable: avoid writing empty keys at the block layer 2022-02-23 13:36:26 -08:00
block.h
blocksource.c reftable: fix resource leak blocksource.c 2022-01-20 11:31:52 -08:00
blocksource.h
constants.h
dump.c
error.c
generic.c reftable: make assignments portable to AIX xlc v12.01 2022-03-28 13:58:10 -07:00
generic.h
iter.c reftable: make reftable_record a tagged union 2022-01-20 11:31:53 -08:00
iter.h
LICENSE
merged_test.c
merged.c reftable: make reftable_record a tagged union 2022-01-20 11:31:53 -08:00
merged.h
pq_test.c reftable: make reftable_record a tagged union 2022-01-20 11:31:53 -08:00
pq.c reftable: make reftable_record a tagged union 2022-01-20 11:31:53 -08:00
pq.h
publicbasics.c
reader.c reftable: reject 0 object_id_len 2022-02-23 13:36:26 -08:00
reader.h
readwrite_test.c reftable: rename writer_stats to reftable_writer_stats 2022-02-23 13:36:26 -08:00
record_test.c reftable: make assignments portable to AIX xlc v12.01 2022-03-28 13:58:10 -07:00
record.c reftable: add print functions to the record types 2022-01-20 11:31:53 -08:00
record.h reftable: add print functions to the record types 2022-01-20 11:31:53 -08:00
refname_test.c
refname.c
refname.h
reftable-blocksource.h
reftable-error.h
reftable-generic.h
reftable-iterator.h
reftable-malloc.h
reftable-merged.h
reftable-reader.h
reftable-record.h reftable: make reftable-record.h function signatures const correct 2022-01-20 11:31:53 -08:00
reftable-stack.h
reftable-tests.h
reftable-writer.h reftable: rename writer_stats to reftable_writer_stats 2022-02-23 13:36:26 -08:00
stack_test.c Merge branch 'hn/reftable-coverity-fixes' 2022-02-16 15:14:28 -08:00
stack.c Merge branch 'hn/reftable-coverity-fixes' 2022-02-16 15:14:28 -08:00
stack.h
system.h compat: auto-detect if zlib has uncompress2() 2022-01-26 09:05:55 -08:00
test_framework.c
test_framework.h
tree_test.c
tree.c
tree.h
writer.c reftable: make assignments portable to AIX xlc v12.01 2022-03-28 13:58:10 -07:00
writer.h