Fix build errors for gcc 8
Test / buildenv (push) Successful in 19s Details
Test / build (push) Successful in 5m5s Details
Test / make_test (push) Successful in 44s Details
Test / test_cas (push) Successful in 15s Details
Test / test_change_pg_size (push) Successful in 9s Details
Test / test_create_nomaxid (push) Successful in 8s Details
Test / test_change_pg_count (push) Successful in 37s Details
Test / test_change_pg_count_ec (push) Successful in 40s Details
Test / test_etcd_fail (push) Successful in 1m11s Details
Test / test_add_osd (push) Successful in 3m11s Details
Test / test_interrupted_rebalance_imm (push) Successful in 2m39s Details
Test / test_interrupted_rebalance_ec (push) Successful in 1m52s Details
Test / test_interrupted_rebalance (push) Successful in 2m49s Details
Test / test_failure_domain (push) Successful in 8s Details
Test / test_minsize_1 (push) Successful in 14s Details
Test / test_snapshot (push) Successful in 25s Details
Test / test_interrupted_rebalance_ec_imm (push) Successful in 1m24s Details
Test / test_snapshot_ec (push) Successful in 28s Details
Test / test_rm (push) Successful in 15s Details
Test / test_move_reappear (push) Successful in 20s Details
Test / test_snapshot_down (push) Successful in 31s Details
Test / test_snapshot_down_ec (push) Successful in 31s Details
Test / test_splitbrain (push) Successful in 24s Details
Test / test_snapshot_chain (push) Successful in 2m8s Details
Test / test_snapshot_chain_ec (push) Successful in 2m53s Details
Test / test_rebalance_verify_imm (push) Successful in 3m5s Details
Test / test_rebalance_verify (push) Successful in 3m44s Details
Test / test_switch_primary (push) Successful in 35s Details
Test / test_write (push) Successful in 52s Details
Test / test_write_no_same (push) Successful in 13s Details
Test / test_write_xor (push) Successful in 52s Details
Test / test_rebalance_verify_ec_imm (push) Successful in 3m8s Details
Test / test_rebalance_verify_ec (push) Successful in 3m55s Details
Test / test_heal_pg_size_2 (push) Successful in 5m21s Details
Test / test_heal_ec (push) Successful in 5m51s Details
Test / test_heal_csum_32k_dmj (push) Successful in 5m29s Details
Test / test_heal_csum_32k_dj (push) Successful in 5m28s Details
Test / test_heal_csum_4k_dj (push) Successful in 6m11s Details
Test / test_heal_csum_4k (push) Successful in 6m10s Details
Test / test_heal_csum_32k (push) Successful in 6m47s Details
Test / test_heal_csum_4k_dmj (push) Successful in 6m14s Details
Test / test_scrub (push) Successful in 29s Details
Test / test_scrub_zero_osd_2 (push) Successful in 33s Details
Test / test_scrub_xor (push) Successful in 31s Details
Test / test_nfs (push) Successful in 18s Details
Test / test_scrub_pg_size_3 (push) Successful in 50s Details
Test / test_scrub_pg_size_6_pg_minsize_4_osd_count_6_ec (push) Successful in 26s Details
Test / test_scrub_ec (push) Successful in 24s Details

Vitaliy Filippov 2024-03-16 15:12:26 +03:00
parent 20ac3407fd
commit 1bd35438d4
2 changed files with 9 additions and 4 deletions

View File

@ -59,11 +59,15 @@ int nfs3_fsinfo_proc(void *opaque, rpc_op_t *rop)
else
{
// Fill info
bool_t x = FALSE;
*reply = (FSINFO3res){
.status = NFS3_OK,
.resok = (FSINFO3resok){
.obj_attributes = {
.attributes_follow = 0,
// Without at least one reference to a non-constant value (local variable or something else),
// with gcc 8 we get "internal compiler error: side-effects element in no-side-effects CONSTRUCTOR" here
// FIXME: get rid of this after raising compiler requirement
.attributes_follow = x,
//.attributes = get_root_attributes(self),
},
.rtmax = 128*1024*1024,
@ -100,6 +104,7 @@ int nfs3_pathconf_proc(void *opaque, rpc_op_t *rop)
else
{
// Fill info
bool_t x = FALSE;
*reply = (PATHCONF3res){
.status = NFS3_OK,
.resok = (PATHCONF3resok){
@ -107,7 +112,7 @@ int nfs3_pathconf_proc(void *opaque, rpc_op_t *rop)
// Without at least one reference to a non-constant value (local variable or something else),
// with gcc 8 we get "internal compiler error: side-effects element in no-side-effects CONSTRUCTOR" here
// FIXME: get rid of this after raising compiler requirement
.attributes_follow = 0,
.attributes_follow = x,
//.attributes = get_root_attributes(self),
},
.linkmax = 0,

View File

@ -466,7 +466,7 @@ static void nfs_do_align_write(nfs_kv_write_state *st, uint64_t ino, uint64_t of
else
good_size = 0;
s = s > st->size ? st->size : s;
st->rmw[0] = {
st->rmw[0] = (nfs_rmw_t){
.parent = st->self->parent,
.ino = ino,
.offset = offset,
@ -495,7 +495,7 @@ static void nfs_do_align_write(nfs_kv_write_state *st, uint64_t ino, uint64_t of
good_size -= s;
else
good_size = 0;
st->rmw[1] = {
st->rmw[1] = (nfs_rmw_t){
.parent = st->self->parent,
.ino = ino,
.offset = end - s,