diff options
author | lhchavez <lhchavez@lhchavez.com> | 2019-01-05 22:12:48 -0800 |
---|---|---|
committer | lhchavez <lhchavez@lhchavez.com> | 2019-01-05 22:26:18 -0800 |
commit | 7b453e7e39c6e27d63be0922a153e1cb47f33218 (patch) | |
tree | 227aa2eef9c10852c306946d6f2c00ab60aafa07 /src/win32 | |
parent | fba70a9d5f1fa433968a3dfd51e3153c8eebe834 (diff) | |
download | libgit2-7b453e7e39c6e27d63be0922a153e1cb47f33218.tar.gz |
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.
Diffstat (limited to 'src/win32')
-rw-r--r-- | src/win32/posix_w32.c | 1 |
1 files changed, 0 insertions, 1 deletions
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) |