Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
util/consideredharmful: Use overloadable func attribute with clang
When building with glibc HEAD, it has fortified headers with clang as well and clang reports errors e.g. | ../git/src/util/consideredharmful.h:33:7: error: redeclaration of 'strncat' must have the 'overloadable' attribute | 33 | char* strncat(); | | ^ | /mnt/b/yoe/master/build/tmp/work/core2-64-yoe-linux/taisei/1.4.2/recipe-sysroot/usr/include/bits/string_fortified.h:145:8: note: previous overload of function is here | 145 | __NTH (strncat (__fortify_clang_overload_arg (char *, __restrict, __dest), | | ^ Upstream-Status: Submitted [#393] Signed-off-by: Khem Raj <raj.khem@gmail.com>
- Loading branch information