also, I am getting the following warning message
when running `make` is it safe to skip?
dht-layout.c: In function ‘dht_layout_new’:
dht-layout.c:51:9: warning: dereferencing
type-punned pointer will break strict-aliasing rules
[-Wstrict-aliasing]
GF_ATOMIC_INIT (layout->ref, 1);
^
dht-layout.c:51:9: warning: dereferencing
type-punned pointer will break strict-aliasing rules
[-Wstrict-aliasing]
CC dht-helper.lo
CC ec.lo
ec.c: In function ‘ec_statistics_init’:
ec.c:637:9: warning: dereferencing type-punned
pointer will break strict-aliasing rules
[-Wstrict-aliasing]
GF_ATOMIC_INIT(ec->stats.stripe_cache.hits, 0);
^
ec.c:637:9: warning: dereferencing type-punned
pointer will break strict-aliasing rules
[-Wstrict-aliasing]
ec.c:638:9: warning: dereferencing type-punned
pointer will break strict-aliasing rules
[-Wstrict-aliasing]
GF_ATOMIC_INIT(ec->stats.stripe_cache.misses,
0);
^
ec.c:638:9: warning: dereferencing type-punned
pointer will break strict-aliasing rules
[-Wstrict-aliasing]
ec.c:639:9: warning: dereferencing type-punned
pointer will break strict-aliasing rules
[-Wstrict-aliasing]
GF_ATOMIC_INIT(ec->stats.stripe_cache.updates,
0);
^
ec.c:639:9: warning: dereferencing type-punned
pointer will break strict-aliasing rules
[-Wstrict-aliasing]
ec.c:640:9: warning: dereferencing type-punned
pointer will break strict-aliasing rules
[-Wstrict-aliasing]
GF_ATOMIC_INIT(ec->stats.stripe_cache.invals,
0);
^
ec.c:640:9: warning: dereferencing type-punned
pointer will break strict-aliasing rules
[-Wstrict-aliasing]
ec.c:641:9: warning: dereferencing type-punned
pointer will break strict-aliasing rules
[-Wstrict-aliasing]
GF_ATOMIC_INIT(ec->stats.stripe_cache.evicts,
0);
^
ec.c:641:9: warning: dereferencing type-punned
pointer will break strict-aliasing rules
[-Wstrict-aliasing]
ec.c:642:9: warning: dereferencing type-punned
pointer will break strict-aliasing rules
[-Wstrict-aliasing]
GF_ATOMIC_INIT(ec->stats.stripe_cache.allocs,
0);
^
ec.c:642:9: warning: dereferencing type-punned
pointer will break strict-aliasing rules
[-Wstrict-aliasing]
ec.c:643:9: warning: dereferencing type-punned
pointer will break strict-aliasing rules
[-Wstrict-aliasing]
GF_ATOMIC_INIT(ec->stats.stripe_cache.errors,
0);
^
ec.c:643:9: warning: dereferencing type-punned
pointer will break strict-aliasing rules
[-Wstrict-aliasing]
CC ec-data.lo
.libs/posix-inode-fd-ops.o: In function
`posix_do_chmod':
/home/qubevaultadmin/gluster-tar/glusterfs-4.1.6/xlators/storage/posix/src/posix-inode-fd-ops.c:203:
warning: lchmod is not implemented and will always
fail
make[5]: Nothing to be done for 'all-am'.
CC client-handshake.lo
client-handshake.c: In function
‘clnt_fd_lk_local_create’:
client-handshake.c:150:9: warning: dereferencing
type-punned pointer will break strict-aliasing rules
[-Wstrict-aliasing]
GF_ATOMIC_INIT (local->ref, 1);
^
client-handshake.c:150:9: warning: dereferencing
type-punned pointer will break strict-aliasing rules
[-Wstrict-aliasing]
CC client-callback.lo
CC readdir-ahead.lo
readdir-ahead.c: In function ‘init’:
readdir-ahead.c:637:9: warning: dereferencing
type-punned pointer will break strict-aliasing rules
[-Wstrict-aliasing]
GF_ATOMIC_INIT (priv->rda_cache_size,
0);
^
readdir-ahead.c:637:9: warning: dereferencing
type-punned pointer will break strict-aliasing rules
[-Wstrict-aliasing]
Making all in src
CC md-cache.lo
md-cache.c: In function ‘mdc_init’:
md-cache.c:3431:9: warning: dereferencing
type-punned pointer will break strict-aliasing rules
[-Wstrict-aliasing]
GF_ATOMIC_INIT
(conf->mdc_counter.stat_hit, 0);
^
md-cache.c:3431:9: warning: dereferencing
type-punned pointer will break strict-aliasing rules
[-Wstrict-aliasing]
md-cache.c:3432:9: warning: dereferencing
type-punned pointer will break strict-aliasing rules
[-Wstrict-aliasing]
GF_ATOMIC_INIT
(conf->mdc_counter.stat_miss, 0);
^
md-cache.c:3432:9: warning: dereferencing
type-punned pointer will break strict-aliasing rules
[-Wstrict-aliasing]
md-cache.c:3433:9: warning: dereferencing
type-punned pointer will break strict-aliasing rules
[-Wstrict-aliasing]
GF_ATOMIC_INIT
(conf->mdc_counter.xattr_hit, 0);
^
md-cache.c:3433:9: warning: dereferencing
type-punned pointer will break strict-aliasing rules
[-Wstrict-aliasing]
md-cache.c:3434:9: warning: dereferencing
type-punned pointer will break strict-aliasing rules
[-Wstrict-aliasing]
GF_ATOMIC_INIT
(conf->mdc_counter.xattr_miss, 0);
^
md-cache.c:3434:9: warning: dereferencing
type-punned pointer will break strict-aliasing rules
[-Wstrict-aliasing]
md-cache.c:3435:9: warning: dereferencing
type-punned pointer will break strict-aliasing rules
[-Wstrict-aliasing]
GF_ATOMIC_INIT
(conf->mdc_counter.negative_lookup, 0);
^
md-cache.c:3435:9: warning: dereferencing
type-punned pointer will break strict-aliasing rules
[-Wstrict-aliasing]
md-cache.c:3436:9: warning: dereferencing
type-punned pointer will break strict-aliasing rules
[-Wstrict-aliasing]
GF_ATOMIC_INIT
(conf->mdc_counter.nameless_lookup, 0);
^
md-cache.c:3436:9: warning: dereferencing
type-punned pointer will break strict-aliasing rules
[-Wstrict-aliasing]
md-cache.c:3437:9: warning: dereferencing
type-punned pointer will break strict-aliasing rules
[-Wstrict-aliasing]
GF_ATOMIC_INIT
(conf->mdc_counter.stat_invals, 0);
^
md-cache.c:3437:9: warning: dereferencing
type-punned pointer will break strict-aliasing rules
[-Wstrict-aliasing]
md-cache.c:3438:9: warning: dereferencing
type-punned pointer will break strict-aliasing rules
[-Wstrict-aliasing]
GF_ATOMIC_INIT
(conf->mdc_counter.xattr_invals, 0);
^
md-cache.c:3438:9: warning: dereferencing
type-punned pointer will break strict-aliasing rules
[-Wstrict-aliasing]
md-cache.c:3439:9: warning: dereferencing
type-punned pointer will break strict-aliasing rules
[-Wstrict-aliasing]
GF_ATOMIC_INIT
(conf->mdc_counter.need_lookup, 0);
^
md-cache.c:3439:9: warning: dereferencing
type-punned pointer will break strict-aliasing rules
[-Wstrict-aliasing]
dht-layout.c: In function ‘dht_layout_new’:
dht-layout.c:51:9: warning: dereferencing
type-punned pointer will break strict-aliasing rules
[-Wstrict-aliasing]
GF_ATOMIC_INIT (layout->ref, 1);
CC io-stats.lo
io-stats.c: In function ‘ios_init_iosstat’:
io-stats.c:1973:17: warning: dereferencing
type-punned pointer will break strict-aliasing rules
[-Wstrict-aliasing]
GF_ATOMIC_INIT
(iosstat->counters[i], 0);
^
io-stats.c:1973:17: warning: dereferencing
type-punned pointer will break strict-aliasing rules
[-Wstrict-aliasing]
io-stats.c: In function ‘io_stats_open_cbk’:
io-stats.c:2066:9: warning: dereferencing
type-punned pointer will break strict-aliasing rules
[-Wstrict-aliasing]
GF_ATOMIC_INIT (iosfd->data_read, 0);
^
io-stats.c:2066:9: warning: dereferencing
type-punned pointer will break strict-aliasing rules
[-Wstrict-aliasing]
io-stats.c:2067:9: warning: dereferencing
type-punned pointer will break strict-aliasing rules
[-Wstrict-aliasing]
GF_ATOMIC_INIT (iosfd->data_written,
0);
^
io-stats.c:2067:9: warning: dereferencing
type-punned pointer will break strict-aliasing rules
[-Wstrict-aliasing]
io-stats.c:2069:17: warning: dereferencing
type-punned pointer will break strict-aliasing rules
[-Wstrict-aliasing]
GF_ATOMIC_INIT
(iosfd->block_count_write[i], 0);
^
io-stats.c:2069:17: warning: dereferencing
type-punned pointer will break strict-aliasing rules
[-Wstrict-aliasing]
io-stats.c:2070:17: warning: dereferencing
type-punned pointer will break strict-aliasing rules
[-Wstrict-aliasing]
GF_ATOMIC_INIT
(iosfd->block_count_read[i], 0);
^
io-stats.c:2070:17: warning: dereferencing
type-punned pointer will break strict-aliasing rules
[-Wstrict-aliasing]
io-stats.c: In function ‘ios_init_stats’:
io-stats.c:4006:9: warning: dereferencing
type-punned pointer will break strict-aliasing rules
[-Wstrict-aliasing]
GF_ATOMIC_INIT (stats->data_read, 0);
^
io-stats.c:4006:9: warning: dereferencing
type-punned pointer will break strict-aliasing rules
[-Wstrict-aliasing]
io-stats.c:4007:9: warning: dereferencing
type-punned pointer will break strict-aliasing rules
[-Wstrict-aliasing]
GF_ATOMIC_INIT (stats->data_written,
0);
^
io-stats.c:4007:9: warning: dereferencing
type-punned pointer will break strict-aliasing rules
[-Wstrict-aliasing]
io-stats.c:4010:17: warning: dereferencing
type-punned pointer will break strict-aliasing rules
[-Wstrict-aliasing]
GF_ATOMIC_INIT
(stats->block_count_write[i], 0);
^
io-stats.c:4010:17: warning: dereferencing
type-punned pointer will break strict-aliasing rules
[-Wstrict-aliasing]
io-stats.c:4011:17: warning: dereferencing
type-punned pointer will break strict-aliasing rules
[-Wstrict-aliasing]
GF_ATOMIC_INIT
(stats->block_count_read[i], 0);
^
io-stats.c:4011:17: warning: dereferencing
type-punned pointer will break strict-aliasing rules
[-Wstrict-aliasing]
io-stats.c:4015:17: warning: dereferencing
type-punned pointer will break strict-aliasing rules
[-Wstrict-aliasing]
GF_ATOMIC_INIT
(stats->fop_hits[i], 0);
^
io-stats.c:4015:17: warning: dereferencing
type-punned pointer will break strict-aliasing rules
[-Wstrict-aliasing]
io-stats.c:4018:17: warning: dereferencing
type-punned pointer will break strict-aliasing rules
[-Wstrict-aliasing]
GF_ATOMIC_INIT
(stats->upcall_hits[i], 0);
^
io-stats.c:4018:17: warning: dereferencing
type-punned pointer will break strict-aliasing rules
[-Wstrict-aliasing]
CC barrier.lo
barrier.c: In function ‘notify’:
barrier.c:499:33: warning: switch condition has
boolean value [-Wswitch-bool]
switch (past) {
^
barrier.c: In function ‘reconfigure’:
barrier.c:565:25: warning: switch condition has
boolean value [-Wswitch-bool]
switch (past) {
^
CC client-handshake.lo
client-handshake.c: In function
‘clnt_fd_lk_local_create’:
client-handshake.c:150:9: warning: dereferencing
type-punned pointer will break strict-aliasing rules
[-Wstrict-aliasing]
GF_ATOMIC_INIT (local->ref, 1);
^
client-handshake.c:150:9: warning: dereferencing
type-punned pointer will break strict-aliasing rules
[-Wstrict-aliasing]
CC changelog-rpc.lo
changelog-rpc.c: In function
‘changelog_rpc_clnt_init’:
changelog-rpc.c:217:9: warning: dereferencing
type-punned pointer will break strict-aliasing rules
[-Wstrict-aliasing]
GF_ATOMIC_INIT (crpc->ref, 1);
^
changelog-rpc.c:217:9: warning: dereferencing
type-punned pointer will break strict-aliasing rules
[-Wstrict-aliasing]
CC changelog-barrier.lo
CC changelog-rpc-common.lo
CC mount.lo
../../../../contrib/fuse-lib/mount.c: In function
‘gf_fuse_unmount_daemon’:
../../../../contrib/fuse-lib/mount.c:106:17:
warning: ignoring return value of ‘chdir’, declared
with attribute warn_unused_result [-Wunused-result]
(void)chdir("/");
^
../../../../contrib/fuse-lib/mount.c:110:17:
warning: ignoring return value of ‘read’, declared
with attribute warn_unused_result [-Wunused-result]
read (ump[0], &c, 1);
^
../../../../contrib/fuse-lib/mount.c: In function
‘gf_fuse_mount’:
../../../../contrib/fuse-lib/mount.c:507:25:
warning: ignoring return value of ‘write’, declared
with attribute warn_unused_result [-Wunused-result]
(void)write (status_fd,
&ret, sizeof (ret));
^
CC mount-common.lo
../../../../contrib/fuse-lib/mount-common.c: In
function ‘mtab_needs_update’:
../../../../contrib/fuse-lib/mount-common.c:59:25:
warning: ignoring return value of ‘setreuid’,
declared with attribute warn_unused_result
[-Wunused-result]
setreuid (0, -1);
^
../../../../contrib/fuse-lib/mount-common.c:64:25:
warning: ignoring return value of ‘setreuid’,
declared with attribute warn_unused_result
[-Wunused-result]
setreuid (ruid, -1);
^
glusterd-pmap.c: In function
‘pmap_registry_bind’:
glusterd-pmap.c:287:17: warning: ignoring return
value of ‘asprintf’, declared with attribute
warn_unused_result [-Wunused-result]
asprintf
(&pmap->ports[p].brickname, "%s %s", tmp,
brickname);
^
glusterd-pmap.c: In function
‘pmap_registry_extend’:
glusterd-pmap.c:346:17: warning: ignoring return
value of ‘asprintf’, declared with attribute
warn_unused_result [-Wunused-result]
asprintf (&new_bn, "%s %s",
old_bn, brickname);
CC mount-common.o
../../contrib/fuse-lib/mount-common.c: In
function ‘mtab_needs_update’:
../../contrib/fuse-lib/mount-common.c:59:25:
warning: ignoring return value of ‘setreuid’,
declared with attribute warn_unused_result
[-Wunused-result]
setreuid (0, -1);
^
../../contrib/fuse-lib/mount-common.c:64:25:
warning: ignoring return value of ‘setreuid’,
declared with attribute warn_unused_result
[-Wunused-result]
setreuid (ruid, -1);
^
CCLD fusermount-glusterfs