Created
December 26, 2019 22:53
-
-
Save mechanicker/4bec859497103a83ba72ae07899a26ab to your computer and use it in GitHub Desktop.
Fix compilation error gnulib
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/linkat.c b/lib/linkat.c | |
index 6a4f1a617..be4cbc415 100644 | |
--- a/lib/linkat.c | |
+++ b/lib/linkat.c | |
@@ -331,8 +331,11 @@ rpl_linkat (int fd1, char const *file1, int fd2, char const *file2, int flag) | |
/* OS X 10.10 has linkat() but it doesn't support | |
hardlinks to symlinks. Fallback to our emulation | |
in that case. */ | |
+#pragma GCC diagnostic push | |
+#pragma GCC diagnostic ignored "-Wlogical-op" | |
if (result == -1 && (errno == ENOTSUP || errno == EOPNOTSUPP)) | |
return at_func2 (fd1, file1, fd2, file2, link_immediate); | |
+#pragma GCC diagnostic pop | |
# endif | |
return result; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment