forked from vitalif/vitastor
Fix build errors for gcc 8
parent
de840e6fe3
commit
2043b4e374
|
@ -59,11 +59,15 @@ int nfs3_fsinfo_proc(void *opaque, rpc_op_t *rop)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Fill info
|
// Fill info
|
||||||
|
bool_t x = FALSE;
|
||||||
*reply = (FSINFO3res){
|
*reply = (FSINFO3res){
|
||||||
.status = NFS3_OK,
|
.status = NFS3_OK,
|
||||||
.resok = (FSINFO3resok){
|
.resok = (FSINFO3resok){
|
||||||
.obj_attributes = {
|
.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),
|
//.attributes = get_root_attributes(self),
|
||||||
},
|
},
|
||||||
.rtmax = 128*1024*1024,
|
.rtmax = 128*1024*1024,
|
||||||
|
@ -100,6 +104,7 @@ int nfs3_pathconf_proc(void *opaque, rpc_op_t *rop)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Fill info
|
// Fill info
|
||||||
|
bool_t x = FALSE;
|
||||||
*reply = (PATHCONF3res){
|
*reply = (PATHCONF3res){
|
||||||
.status = NFS3_OK,
|
.status = NFS3_OK,
|
||||||
.resok = (PATHCONF3resok){
|
.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),
|
// 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
|
// 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
|
// FIXME: get rid of this after raising compiler requirement
|
||||||
.attributes_follow = 0,
|
.attributes_follow = x,
|
||||||
//.attributes = get_root_attributes(self),
|
//.attributes = get_root_attributes(self),
|
||||||
},
|
},
|
||||||
.linkmax = 0,
|
.linkmax = 0,
|
||||||
|
|
|
@ -466,7 +466,7 @@ static void nfs_do_align_write(nfs_kv_write_state *st, uint64_t ino, uint64_t of
|
||||||
else
|
else
|
||||||
good_size = 0;
|
good_size = 0;
|
||||||
s = s > st->size ? st->size : s;
|
s = s > st->size ? st->size : s;
|
||||||
st->rmw[0] = {
|
st->rmw[0] = (nfs_rmw_t){
|
||||||
.parent = st->self->parent,
|
.parent = st->self->parent,
|
||||||
.ino = ino,
|
.ino = ino,
|
||||||
.offset = offset,
|
.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;
|
good_size -= s;
|
||||||
else
|
else
|
||||||
good_size = 0;
|
good_size = 0;
|
||||||
st->rmw[1] = {
|
st->rmw[1] = (nfs_rmw_t){
|
||||||
.parent = st->self->parent,
|
.parent = st->self->parent,
|
||||||
.ino = ino,
|
.ino = ino,
|
||||||
.offset = end - s,
|
.offset = end - s,
|
||||||
|
|
Loading…
Reference in New Issue