From 7b453e7e39c6e27d63be0922a153e1cb47f33218 Mon Sep 17 00:00:00 2001 From: lhchavez Date: Sat, 5 Jan 2019 22:12:48 -0800 Subject: Fix a bunch of warnings This change fixes a bunch of warnings that were discovered by compiling with `clang -target=i386-pc-linux-gnu`. It turned out that the intrinsics were not necessarily being used in all platforms! Especially in GCC, since it does not support __has_builtin. Some more warnings were gleaned from the Windows build, but I stopped when I saw that some third-party dependencies (e.g. zlib) have warnings of their own, so we might never be able to enable -Werror there. --- src/win32/posix_w32.c | 1 - 1 file changed, 1 deletion(-) (limited to 'src/win32') diff --git a/src/win32/posix_w32.c b/src/win32/posix_w32.c index 5d144936b..aa9e61877 100644 --- a/src/win32/posix_w32.c +++ b/src/win32/posix_w32.c @@ -397,7 +397,6 @@ int p_readlink(const char *path, char *buf, size_t bufsiz) int p_symlink(const char *target, const char *path) { git_win32_path target_w, path_w; - wchar_t *target_p; if (git_win32_path_from_utf8(path_w, path) < 0 || git__utf8_to_16(target_w, MAX_PATH, target) < 0) -- cgit v1.2.1