Opened 5 years ago
Closed 5 years ago
#59129 closed defect (fixed)
aspell @0.60.6.1: comparison between pointer and integer
Reported by: | ryandesign (Ryan Carsten Schmidt) | Owned by: | jokuha (Jochen) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | ||
Port: | aspell |
Description
prog/check_funs.cpp:650:14: error: comparison between pointer and integer ('const char *' and 'char') if (word == '\0') ~~~~ ^ ~~~~ prog/aspell.cpp:237:6: warning: logical not is only applied to the left hand side of this comparison [-Wlogical-not-parentheses] && !strcmp(str, i->name) == 0) ^ ~~ prog/aspell.cpp:237:6: note: add parentheses after the '!' to evaluate the comparison first && !strcmp(str, i->name) == 0) ^ ( ) prog/aspell.cpp:237:6: note: add parentheses around left hand side expression to silence this warning && !strcmp(str, i->name) == 0) ^ ( ) 1 error generated.
Change History (2)
comment:1 Changed 5 years ago by kencu (Ken)
comment:2 Changed 5 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
one of the many errors you see trying to compile everything with clang-8.0 on 10.6.8.
somebody will fix this, but for now I just set my default compiler to clang-5.0 to avoid this (and many similar)