diff options
author | Kaleb S. KEITHLEY <kkeithle@redhat.com> | 2020-07-07 09:59:51 -0400 |
---|---|---|
committer | Amar Tumballi <amar@kadalu.io> | 2020-07-09 04:22:05 +0000 |
commit | 0f81517e2ba18f0be131fb3afa5aa333890104f2 (patch) | |
tree | 5a70e79f89a66293b6628a84d6ef8ca4eff1dfb9 /xlators/protocol/Makefile.am | |
parent | cdf01cc47eb2efb427b5855732d9607eec2abc8a (diff) |
xlator/mgmt/glusterd: lto-type-mismatch
Seen in fedora rawhide/33, and SUSE tumbleweed, in all versions
going back at least as far as glusterfs-6.
[ 351s] glusterd.c:68:13: warning: type of 'snap_mount_dir' does not match original declaration [-Wlto-type-mismatch]
[ 351s] 68 | extern char snap_mount_dir[PATH_MAX];
[ 351s] | ^
[ 351s] glusterd-snapshot.c:65:6: note: array types have different bounds
[ 351s] 65 | char snap_mount_dir[VALID_GLUSTERD_PATHMAX];
[ 351s] | ^
[ 351s] glusterd-snapshot.c:65:6: note: 'snap_mount_dir' was previously declared here
In this case it's only a warning, but certainly merits fixing.
Another case where a decl in a header file instead of open-coding
extern decls in multiple .c files would have been preferable.
Change-Id: Idc91e536a56a1a7717be83ed27698069e71dff67
Updates: #1002
Signed-off-by: Kaleb S. KEITHLEY <kkeithle@redhat.com>
Diffstat (limited to 'xlators/protocol/Makefile.am')
0 files changed, 0 insertions, 0 deletions