Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
IS_DASH() warning
- X-seq: zsh-workers 40814
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: IS_DASH() warning
- Date: Thu, 9 Mar 2017 23:27:36 -0800
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=H2dsEbAyyt7zhGgRmXAxF7bOYAAoQVtvspPyQWbjWaQ=; b=kPCzMxHZqmEMqVRPKhb4c4jqR7ruAA+fdCwoL2KmN6OMnSTCdbhaKoyQ6KcBU9u4xI Lzukm9mu2sviqvY1sWjmS7WjyKsoyPE4jUiq/BUBvzE4tHC1XprfcuCCFa0yO0qRIVMc dxuQojjVXOuV5vyP6pPT2bpnQ7AkoK42+OWHxHNp2syovoxCRMXGk+JwGL64Xo4q+Vjv BsFWp4kjR96jqAI6Asmed7U5GlXs29yU3Em77gS9wEfV04cGz6lr3OGWpsoatMCbiq4x KfYx9ekfWxGaGhK570LB3JBriHXNrVBtuHcLYZDHXhSXfoU2woQkn81EH3RkzrN7uB0D utKg==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
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