Whamcloud - gitweb
LU-16518 utils: fix clang build errors 61/50161/4
authorTimothy Day <timday@amazon.com>
Tue, 28 Feb 2023 18:47:06 +0000 (18:47 +0000)
committerOleg Drokin <green@whamcloud.com>
Tue, 21 Mar 2023 23:15:29 +0000 (23:15 +0000)
commit632dc6729abcaf83aeaef8167a73ce18b9a41a67
tree61841c3c1f4b50201987f09c90b39f3de5ab0afb
parent764e19186cfc991239fcabe12eec68fe0e8a4c2f
LU-16518 utils: fix clang build errors

This patch fixes a number of small clang build
errors in Lustre utils. Many errors are related
to nuances in typing or statements which appear
to be tautologies. These are resolved.

Some unneeded paranthesis are removed. A variable
is initialized which could potentially be left
uninitialized. And a comparison was added that
seemed to be left out.

Signed-off-by: Timothy Day <timday@amazon.com>
Change-Id: Id3f40b033e640f8d2ae6386f66a88de06fc89666
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/50161
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Sebastien Buisson <sbuisson@ddn.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/uapi/linux/lustre/lustre_user.h
lustre/utils/gss/sk_utils.c
lustre/utils/lfs.c
lustre/utils/liblustreapi.c
lustre/utils/liblustreapi_layout.c
lustre/utils/mkfs_lustre.c
lustre/utils/obd.c