Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

IS_DASH() warning



glob.c:2398:10: warning: comparison of constant -101 with expression of type
      'unsigned char' is always false
      [-Wtautological-constant-out-of-range-compare]
            if (IS_DASH(c1) && lastch >= 0 && p < str2 && lastch <= (int)c2) {
                ^~~~~~~~~~~
./zsh.h:248:39: note: expanded from macro 'IS_DASH'
#define IS_DASH(x) ((x) == '-' || (x) == Dash)
                                  ~~~ ^  ~~~~

(It's complaining about the comparison to Dash if proportional font
misplaces the caret.)



Messages sorted by: Reverse Date, Date, Thread, Author