Opened 8 years ago
Closed 8 years ago
#12833 closed bug (fixed)
[Patch] tools/fs_shell/block_cache.cpp: fix gcc warnings
Reported by: | mt | Owned by: | nobody |
---|---|---|---|
Priority: | normal | Milestone: | Unscheduled |
Component: | Applications/Command Line Tools | Version: | R1/Development |
Keywords: | fs_shell | Cc: | |
Blocked By: | Blocking: | ||
Platform: | All |
Description
Since 'maxAccessed' and 'count' is int32, use INT32_MAX instead of LONG_MAX.
/home/haiku/haiku/haiku/src/tools/fs_shell/block_cache.cpp:127:50: warning: overflow in implicit constant conversion [-Woverflow] void RemoveUnusedBlocks(int32_t maxAccessed = LONG_MAX, ^ /home/haiku/haiku/haiku/src/tools/fs_shell/block_cache.cpp:128:23: warning: overflow in implicit constant conversion [-Woverflow] int32_t count = LONG_MAX); ^
Attachments (1)
Change History (3)
by , 8 years ago
Attachment: | 0021-block_cache.cpp-fix-gcc-warnings.patch added |
---|
comment:1 by , 8 years ago
patch: | 0 → 1 |
---|
comment:2 by , 8 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Fixed in hrev50402.