Whamcloud - gitweb
LU-16518 utils: fix clang build errors
authorTimothy Day <timday@amazon.com>
Wed, 8 Nov 2023 20:22:54 +0000 (12:22 -0800)
committerAndreas Dilger <adilger@whamcloud.com>
Thu, 9 Nov 2023 08:36:09 +0000 (08:36 +0000)
commitd41d0cd001dd83f6736181bef55a288a36d02863
treec393d9b02eb3bbd0b1d565c266538be9bdf848b0
parentf98ec6459a65066e0ba822b3de1500642eb331da
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.

Lustre-change: https://review.whamcloud.com/50161
Lustre-commit: 632dc6729abcaf83aeaef8167a73ce18b9a41a67

Signed-off-by: Timothy Day <timday@amazon.com>
Change-Id: Id3f40b033e640f8d2ae6386f66a88de06fc89666
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Sebastien Buisson <sbuisson@ddn.com>
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/53042
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Andreas Dilger <adilger@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