From 62337be8ada4692bfd10eceaa042e3c4a553ece8 Mon Sep 17 00:00:00 2001
From: Mattias Ellert <mattias.ellert@physics.uu.se>
Date: Mon, 17 Jan 2022 09:24:46 +0100
Subject: [PATCH 3/4] Fix warning about comparing arrays
Cast the arrays to pointers to avoid the warning
.../src/XrdPosix/XrdPosixXrootd.cc:955:22: error: comparison between two arrays [-Werror=array-compare]
955 | if (dp32->d_name != dp64->d_name)
| ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
---
src/XrdPosix/XrdPosixXrootd.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/XrdPosix/XrdPosixXrootd.cc b/src/XrdPosix/XrdPosixXrootd.cc
index 517dc07ec..cedb3ca40 100644
--- a/src/XrdPosix/XrdPosixXrootd.cc
+++ b/src/XrdPosix/XrdPosixXrootd.cc
@@ -952,7 +952,7 @@ struct dirent* XrdPosixXrootd::Readdir(DIR *dirp)
if (!(dp64 = Readdir64(dirp))) return 0;
dp32 = (struct dirent *)dp64;
- if (dp32->d_name != dp64->d_name)
+ if ((char*)dp32->d_name != (char*)dp64->d_name)
{dp32->d_ino = dp64->d_ino;
#if !defined(__APPLE__) && !defined(__FreeBSD__) && !defined(__GNU__) && !(defined(__FreeBSD_kernel__) && defined(__GLIBC__))
dp32->d_off = dp64->d_off;
--
2.34.1