Whamcloud - gitweb
LU-16518 libcfs: fix clang build errors 62/50162/4
authorTimothy Day <timday@amazon.com>
Tue, 28 Feb 2023 18:48:36 +0000 (18:48 +0000)
committerOleg Drokin <green@whamcloud.com>
Tue, 21 Mar 2023 23:15:42 +0000 (23:15 +0000)
commitb5365d5e00aaea55d6b14d1ffc0d801c89d9f79d
treef547ecbcf826f90e42caa5332f781c598a4f729b
parent632dc6729abcaf83aeaef8167a73ce18b9a41a67
LU-16518 libcfs: fix clang build errors

Adjust a strncat and the preceding if statement
to account for the null terminator in the string.

Use (void) to designate two variables as unused
in a function to avoid doing a self-assign.

Also, use an explicit format to fix the format
security warning around alloc_workqueue.

Signed-off-by: Timothy Day <timday@amazon.com>
Change-Id: I14a19ba83c063cd81c16723c31d0488c2b4f607e
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/50162
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
libcfs/include/libcfs/libcfs_cpu.h
libcfs/libcfs/util/parser.c