[all-commits] [llvm/llvm-project] 1d4e8f: [libc] Fix compilation issues in memory_check_utils.h
Roland McGrath via All-commits
all-commits at lists.llvm.org
Thu May 25 14:09:43 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 1d4e8f0ea66c7f623d06a4308cd99c38736173f6
https://github.com/llvm/llvm-project/commit/1d4e8f0ea66c7f623d06a4308cd99c38736173f6
Author: Roland McGrath <mcgrathr at google.com>
Date: 2023-05-25 (Thu, 25 May 2023)
Changed paths:
M libc/test/src/string/memory_utils/memory_check_utils.h
Log Message:
-----------
[libc] Fix compilation issues in memory_check_utils.h
Strict warnings require explicit static_cast to counteract
default widening of types narrower than int.
Functions in header files should have vague linkage (inline
keyword), not internal linkage (static) or external linkage
(no inline keyword) even for template functions. Note these
don't use the LIBC_INLINE macro since this is only for test code.
Reviewed By: abrachet
Differential Revision: https://reviews.llvm.org/D151494
More information about the All-commits
mailing list