Opened 8 years ago
Closed 8 years ago
#12995 closed bug (fixed)
[Patch]Database.cpp: Fix int-in-bool-context warning.
Reported by: | mt | Owned by: | axeld |
---|---|---|---|
Priority: | normal | Milestone: | Unscheduled |
Component: | Kits/Storage Kit | Version: | R1/Development |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | All |
Description
At line 1142 [1], _SendMonitorUpdate() requires boolean [2], but we passed icon_size.
[1] http://cgit.haiku-os.org/haiku/tree/src/kits/storage/mime/Database.cpp#n1142 [2] http://cgit.haiku-os.org/haiku/tree/src/kits/storage/mime/Database.cpp#n1458
/home/haiku/haiku/haiku/src/kits/storage/mime/Database.cpp: In member function 'status_t BPrivate::Storage::Mime::Database::DeleteIcon(const char*)': /home/haiku/haiku/haiku/src/kits/storage/mime/Database.cpp:1142:29: error: enum constant in boolean context [-Werror=int-in-bool-context] B_META_MIME_DELETED); ^
Attachments (1)
Change History (3)
by , 8 years ago
Attachment: | 0038-Database.cpp-Fix-int-in-bool-context-warning.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.
Applied (with an extra similar change) in hrev50584.