Skip to content

Commit b14c70b

Browse files
committed
Fixup compiler and precommit warnings on OS X
1 parent 0e0c714 commit b14c70b

File tree

4 files changed

+18
-24
lines changed

4 files changed

+18
-24
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ if(NOT nlohmann_json_FOUND)
5757
FetchContent_Declare(
5858
nlohmann_json
5959
URL "${JSON_URL}"
60+
URL_HASH SHA256=8c4b26bf4b422252e13f332bc5e388ec0ab5c3443d24399acb675e68278d341f
6061
)
6162
FetchContent_MakeAvailable(nlohmann_json)
6263
endif()

src/GlobusFile.hh

Lines changed: 15 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -21,33 +21,27 @@
2121
#include "GlobusFileSystem.hh"
2222
#include <XrdOss/XrdOssWrapper.hh>
2323

24-
class GlobusFile : public XrdOssWrapDF {
24+
class GlobusFile final : public XrdOssWrapDF {
2525
public:
2626
GlobusFile(std::unique_ptr<XrdOssDF> wrapped, XrdSysError &log,
2727
GlobusFileSystem *fs)
28-
: XrdOssWrapDF(*wrapped), m_wrapped(std::move(wrapped)), m_log(log),
29-
m_oss(*fs) {}
28+
: XrdOssWrapDF(*wrapped), m_wrapped(std::move(wrapped)) {}
3029

3130
virtual ~GlobusFile() {}
3231

33-
int Open(const char *path, int Oflag, mode_t Mode, XrdOucEnv &env) override {
34-
return m_wrapped->Open(path, Oflag, Mode, env);
35-
}
36-
int Fstat(struct stat *buf) override {
37-
return m_wrapped->Fstat(buf);
38-
}
39-
ssize_t Read(void *buffer, off_t offset, size_t size) override {
40-
return m_wrapped->Read(buffer, offset, size);
41-
}
42-
ssize_t Write(const void *buffer, off_t offset, size_t size) override {
43-
return m_wrapped->Write(buffer, offset, size);
44-
}
45-
int Close(long long *retsz = 0) override {
46-
return m_wrapped->Close(retsz);
47-
}
32+
int Open(const char *path, int Oflag, mode_t Mode,
33+
XrdOucEnv &env) override {
34+
return m_wrapped->Open(path, Oflag, Mode, env);
35+
}
36+
int Fstat(struct stat *buf) override { return m_wrapped->Fstat(buf); }
37+
ssize_t Read(void *buffer, off_t offset, size_t size) override {
38+
return m_wrapped->Read(buffer, offset, size);
39+
}
40+
ssize_t Write(const void *buffer, off_t offset, size_t size) override {
41+
return m_wrapped->Write(buffer, offset, size);
42+
}
43+
int Close(long long *retsz = 0) override { return m_wrapped->Close(retsz); }
4844

4945
private:
5046
std::unique_ptr<XrdOssDF> m_wrapped;
51-
XrdSysError &m_log;
52-
GlobusFileSystem &m_oss;
53-
};
47+
};

src/GlobusFileSystem.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ using namespace XrdHTTPServer;
4646

4747
GlobusFileSystem::GlobusFileSystem(XrdOss *oss, XrdSysLogger *lp,
4848
const char *configfn, XrdOucEnv *envP)
49-
: XrdOssWrapper(*oss), m_oss(oss), m_env(envP), m_log(lp, "globus_"),
49+
: XrdOssWrapper(*oss), m_oss(oss), m_log(lp, "globus_"),
5050
m_transfer_token("", nullptr) {
5151
m_log.Say("------ Initializing the Globus filesystem plugin.");
5252

src/GlobusFileSystem.hh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,10 @@ class GlobusFileSystem : public XrdOssWrapper {
101101
std::string extractRelativePath(const std::string &path) const;
102102

103103
std::unique_ptr<XrdOss> m_oss;
104-
XrdOucEnv *m_env;
105104
XrdSysError m_log;
106105

107106
// Globus-specific configuration
108107
std::string m_transfer_url;
109108
std::string m_storage_prefix;
110109
TokenFile m_transfer_token;
111-
};
110+
};

0 commit comments

Comments
 (0)