* Compiler warning in count_trailing_zero_bits
@ 2013-11-15 9:02 Eli Zaretskii
2013-11-15 18:03 ` Paul Eggert
0 siblings, 1 reply; 3+ messages in thread
From: Eli Zaretskii @ 2013-11-15 9:02 UTC (permalink / raw)
To: Paul Eggert; +Cc: emacs-devel
The line in data.c marked below:
else
{
int count;
for (count = 0;
count < BITS_PER_BITS_WORD - BITS_PER_ULL;
count += BITS_PER_ULL)
{
if (val & ULLONG_MAX)
return count + count_trailing_zeros_ll (val);
val = shift_right_ull (val);
}
if (BITS_PER_BITS_WORD % BITS_PER_ULL != 0
&& BITS_WORD_MAX == (bits_word) -1)
>>>>> val |= (bits_word) 1 << (BITS_PER_BITS_WORD % BITS_PER_ULL);
return count + count_trailing_zeros_ll (val);
}
causes a compiler warning in a 32-bit unoptimized build:
data.c: In function `count_trailing_zero_bits':
data.c:3114: warning: left shift count >= width of type
This is result of commit in revision 115095.
I hope it will be possible to prevent this nuisance.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-11-15 18:31 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-15 9:02 Compiler warning in count_trailing_zero_bits Eli Zaretskii
2013-11-15 18:03 ` Paul Eggert
2013-11-15 18:31 ` Eli Zaretskii
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).