Skip to content

Commit

Permalink
Cleanup warnings on Mac OS X
Browse files Browse the repository at this point in the history
  • Loading branch information
bbockelm committed Jan 4, 2025
1 parent 6be7397 commit 67fbc28
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 12 deletions.
6 changes: 3 additions & 3 deletions src/HTTPFileSystem.cc
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
using namespace XrdHTTPServer;

HTTPFileSystem::HTTPFileSystem(XrdSysLogger *lp, const char *configfn,
XrdOucEnv *envP)
: m_env(envP), m_log(lp, "httpserver_"), m_token("", &m_log) {
XrdOucEnv * /*envP*/)
: m_log(lp, "httpserver_"), m_token("", &m_log) {
m_log.Say("------ Initializing the HTTP filesystem plugin.");
if (!Config(lp, configfn)) {
throw std::runtime_error("Failed to configure HTTP filesystem plugin.");
Expand Down Expand Up @@ -130,7 +130,7 @@ bool HTTPFileSystem::Config(XrdSysLogger *lp, const char *configfn) {
}

if (!token_file.empty()) {
m_token = std::move(TokenFile(token_file, &m_log));
m_token = TokenFile(token_file, &m_log);
}

return true;
Expand Down
1 change: 0 additions & 1 deletion src/HTTPFileSystem.hh
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ class HTTPFileSystem : public XrdOss {
const TokenFile *getToken() const { return &m_token; }

protected:
XrdOucEnv *m_env;
XrdSysError m_log;

bool handle_required_config(const std::string &name_from_config,
Expand Down
2 changes: 0 additions & 2 deletions src/S3File.cc
Original file line number Diff line number Diff line change
Expand Up @@ -758,7 +758,6 @@ ssize_t S3File::S3Cache::Read(S3File &file, char *buffer, off_t offset,
m_partial_hit_count += 1;
}
m_miss_bytes += miss_bytes;
unsigned fetch_attempts = 0;
while (req1_off != -1) {
std::unique_lock lk(m_mutex);
m_cv.wait(lk, [&] {
Expand Down Expand Up @@ -869,7 +868,6 @@ ssize_t S3File::S3Cache::Read(S3File &file, char *buffer, off_t offset,
// No caches serve our requests - we must kick off a new download
// std::cout << "Will download data via cache; req1 offset=" << req1_off
// << ", req2 offset=" << req2_off << "\n";
fetch_attempts++;
bool download_a = false, download_b = false, prefetch_b = false;
if (!m_a.m_inprogress && m_b.m_inprogress) {
m_a.m_off = req1_off / m_cache_entry_size * m_cache_entry_size;
Expand Down
4 changes: 2 additions & 2 deletions src/S3FileSystem.cc
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ bool S3FileSystem::m_dir_marker = true;
std::string S3FileSystem::m_dir_marker_name = ".pelican_dir_marker";

S3FileSystem::S3FileSystem(XrdSysLogger *lp, const char *configfn,
XrdOucEnv *envP)
: m_env(envP), m_log(lp, "s3_") {
XrdOucEnv * /*envP*/)
: m_log(lp, "s3_") {
m_log.Say("------ Initializing the S3 filesystem plugin.");
if (!Config(lp, configfn)) {
throw std::runtime_error("Failed to configure S3 filesystem plugin.");
Expand Down
1 change: 0 additions & 1 deletion src/S3FileSystem.hh
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ class S3FileSystem : public XrdOss {
getS3AccessInfo(const std::string &exposedPath, std::string &object) const;

private:
XrdOucEnv *m_env;
XrdSysError m_log;

// The filesystem logic can test for an empty object to see if there's
Expand Down
6 changes: 3 additions & 3 deletions src/stl_string_utils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,9 @@ std::string urlquote(const std::string input) {
std::string output;
output.reserve(3 * input.size());
for (char val : input) {
if ((val >= 48 || val <= 57) || // Digits 0-9
(val >= 65 || val <= 90) || // Uppercase A-Z
(val >= 97 || val <= 122) || // Lowercase a-z
if ((val >= 48 && val <= 57) || // Digits 0-9
(val >= 65 && val <= 90) || // Uppercase A-Z
(val >= 97 && val <= 122) || // Lowercase a-z
(val == 95 || val == 46 || val == 45 || val == 126 ||
val == 47)) // '_.-~/'
{
Expand Down

0 comments on commit 67fbc28

Please sign in to comment.