[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Suspicious warning in W64 build
From: |
Richard Copley |
Subject: |
Re: Suspicious warning in W64 build |
Date: |
Thu, 7 Sep 2017 21:02:05 +0100 |
On 7 September 2017 at 20:26, Paul Eggert <address@hidden> wrote:
> Try putting an 'eassume (0 <= nglyphs);' before the line in question.
The warning goes away.
By the way, there's another warning which is both true and easy to fix.
"(1 << ((n) % 32)))" should read "(1u << ((n) % 32)))" on line 2191.
CC w32font.o
w32font.c: In function 'font_supported_scripts':
w32font.c:2191:32: warning: result of '1 << 31' requires 33 bits to
represent, but 'int' only has 32 bits [-Wshift-overflow=]
if (subranges[(n) / 32] & (1 << ((n) % 32))) \
^
w32font.c:2246:3: note: in expansion of macro 'SUBRANGE'
SUBRANGE (31, Qsymbol);
^~~~~~~~
w32font.c:2191:32: warning: result of '1 << 31' requires 33 bits to
represent, but 'int' only has 32 bits [-Wshift-overflow=]
if (subranges[(n) / 32] & (1 << ((n) % 32))) \
^
w32font.c:2308:3: note: in expansion of macro 'SUBRANGE'
SUBRANGE (95, Qtai_le);
^~~~~~~~
- Re: Suspicious warning in W64 build, (continued)
- Re: Suspicious warning in W64 build, Richard Copley, 2017/09/07
- Re: Suspicious warning in W64 build, Herring, Davis, 2017/09/09
- Re: Suspicious warning in W64 build, Richard Copley, 2017/09/09
- Re: Suspicious warning in W64 build, Eli Zaretskii, 2017/09/09
- Re: Suspicious warning in W64 build, Angelo Graziosi, 2017/09/09
- Re: Suspicious warning in W64 build, Eli Zaretskii, 2017/09/09
- Re: Suspicious warning in W64 build, Angelo Graziosi, 2017/09/09
- Re: Suspicious warning in W64 build, Eli Zaretskii, 2017/09/07
- Re: Suspicious warning in W64 build, Paul Eggert, 2017/09/07
- Re: Suspicious warning in W64 build, Richard Copley, 2017/09/07
- Re: Suspicious warning in W64 build,
Richard Copley <=
- Re: Suspicious warning in W64 build, Eli Zaretskii, 2017/09/08
- Re: Suspicious warning in W64 build, Eli Zaretskii, 2017/09/08
- Re: Suspicious warning in W64 build, Richard Copley, 2017/09/08
- Re: Suspicious warning in W64 build, Eli Zaretskii, 2017/09/08
- Re: Suspicious warning in W64 build, Richard Copley, 2017/09/08
- Re: Suspicious warning in W64 build, Richard Copley, 2017/09/08
- Re: Suspicious warning in W64 build, Eli Zaretskii, 2017/09/09
- Re: Suspicious warning in W64 build, Richard Copley, 2017/09/08
- Re: Suspicious warning in W64 build, Eli Zaretskii, 2017/09/09
- Re: Suspicious warning in W64 build, Richard Copley, 2017/09/09