Opened 14 years ago
Closed 14 years ago
#6253 closed bug (fixed)
Typo in src/kits/tracker/AttributeStream.h
Reported by: | kaliber | Owned by: | anevilyak |
---|---|---|---|
Priority: | normal | Milestone: | R1 |
Component: | Kits/libtracker.so | Version: | R1/Development |
Keywords: | clang | Cc: | |
Blocked By: | Blocking: | ||
Platform: | All |
Description
Looks like it should be a comparison instead of assignment.
src/kits/tracker/AttributeStream.h:399:46: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (strcmp(fAttr.Name(), name) == 0 && type = fAttr.Type()) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ src/kits/tracker/AttributeStream.h:399:46: note: use '==' to turn this assignment into an equality comparison if (strcmp(fAttr.Name(), name) == 0 && type = fAttr.Type()) ^ == src/kits/tracker/AttributeStream.h:399:46: note: place parentheses around the assignment to silence this warning if (strcmp(fAttr.Name(), name) == 0 && type = fAttr.Type()) ^ ( )
Change History (3)
comment:1 by , 14 years ago
Component: | Kits/Interface Kit → Kits/libtracker.so |
---|---|
Owner: | changed from | to
comment:2 by , 14 years ago
Status: | new → in-progress |
---|
comment:3 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | in-progress → closed |
Note:
See TracTickets
for help on using tickets.
Fixed in hrev37358.