mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 21:35:58 +03:00
[GH-ISSUE #47] -Wsign-compare make Warning #30
Labels
No labels
bug
bug
dataloss
duplicate
enhancement
feature request
help wanted
invalid
need info
performance
pull-request
question
question
testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/s3fs-fuse#30
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @pajarom on GitHub (Jul 12, 2014).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/47
g++ -DPACKAGE_NAME="s3fs" -DPACKAGE_TARNAME="s3fs" -DPACKAGE_VERSION="1.77" -DPACKAGE_STRING="s3fs\ 1.77" -DPACKAGE_BUGREPORT="" -DPACKAGE_URL="" -DPACKAGE="s3fs" -DVERSION="1.77" -DHAVE_MALLOC_TRIM=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -I. -D_FILE_OFFSET_BITS=64 -I/usr/include/fuse -I/usr/include/libxml2 -g -O2 -Wall -D_FILE_OFFSET_BITS=64 -MT fdcache.o -MD -MP -MF .deps/fdcache.Tpo -c -o fdcache.o fdcache.cpp
fdcache.cpp: In member function ‘int FdEntity::Load(off_t, off_t)’:
fdcache.cpp:800:61: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if((*iter)->bytes >= (2 * S3fsCurl::GetMultipartSize()) && !nomultipart){ // default 20MB
@ggtakec commented on GitHub (Aug 14, 2014):
Hi,
Now, the line about problem is following in master branch:
if((*iter)->bytes >= static_cast<size_t>(2 * S3fsCurl::GetMultipartSize()) && !nomultipart){
I don't know why the error message is put without "static_cast<size_t>".
If you can, please check your source codes and master branch.
I need to know the reason about it.
Thanks in advance for your help.
@pajarom commented on GitHub (Aug 29, 2014):
Sorry for the delay responding. I have tested your change and it works
for me:
Let me know if you need me to test anything else.
Regards,
Pablo
On 08/14/2014 06:14 PM, Takeshi Nakatani wrote:
@ggtakec commented on GitHub (Aug 30, 2014):
That it works just fine, it was good.
I closed this issue.
Thanks.