Skip to content

Commit

Permalink
Merge pull request s3fs-fuse#331 from andrewgaul/clang
Browse files Browse the repository at this point in the history
Address various clang warnings
  • Loading branch information
ggtakec committed Jan 16, 2016
2 parents 43b91d3 + e003732 commit 4bfbfa3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/curl.h
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ typedef std::list<sseckeymap_t> sseckeylist_t;
enum storage_class_t {
STANDARD,
STANDARD_IA,
REDUCED_REDUNDANCY,
REDUCED_REDUNDANCY
};

// sse type
Expand Down
10 changes: 5 additions & 5 deletions src/s3fs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,6 @@ typedef std::list<UNCOMP_MP_INFO> uncomp_mp_list_t;
bool foreground = false;
bool nomultipart = false;
bool pathrequeststyle = false;
bool is_specified_endpoint = false;
int s3fs_init_deferred_exit_status = 0;
std::string program_name;
std::string service_path = "/";
std::string host = "http://s3.amazonaws.com";
Expand Down Expand Up @@ -123,6 +121,8 @@ static bool is_s3fs_umask = false;// default does not set.
static bool is_remove_cache = false;
static bool create_bucket = false;
static int64_t singlepart_copy_limit = FIVE_GB;
static bool is_specified_endpoint = false;
static int s3fs_init_deferred_exit_status = 0;

//-------------------------------------------------------------------
// Static functions : prototype
Expand All @@ -143,7 +143,7 @@ static S3fsCurl* multi_head_retry_callback(S3fsCurl* s3fscurl);
static int readdir_multi_head(const char* path, S3ObjList& head, void* buf, fuse_fill_dir_t filler);
static int list_bucket(const char* path, S3ObjList& head, const char* delimiter, bool check_content_only = false);
static int directory_empty(const char* path);
static bool is_truncated(xmlDocPtr doc);;
static bool is_truncated(xmlDocPtr doc);
static int append_objects_from_xml_ex(const char* path, xmlDocPtr doc, xmlXPathContextPtr ctx,
const char* ex_contents, const char* ex_key, const char* ex_etag, int isCPrefix, S3ObjList& head);
static int append_objects_from_xml(const char* path, xmlDocPtr doc, S3ObjList& head);
Expand Down Expand Up @@ -2495,7 +2495,7 @@ static int list_bucket(const char* path, S3ObjList& head, const char* delimiter,
return 0;
}

const char* c_strErrorObjectName = "FILE or SUBDIR in DIR";
static const char* c_strErrorObjectName = "FILE or SUBDIR in DIR";

static int append_objects_from_xml_ex(const char* path, xmlDocPtr doc, xmlXPathContextPtr ctx,
const char* ex_contents, const char* ex_key, const char* ex_etag, int isCPrefix, S3ObjList& head)
Expand Down Expand Up @@ -3055,7 +3055,7 @@ static int s3fs_getxattr(const char* path, const char* name, char* value, size_t
return -EIO;
}

#if (__APPLE__)
#if defined(__APPLE__)
if (position != 0) {
// No resource fork support
return -EINVAL;
Expand Down

0 comments on commit 4bfbfa3

Please sign in to comment.