[devel] Fwd: [bugzilla-daemon@: [Bug 9587] ctermid segfault]
Dmitry V. Levin
ldv на altlinux.org
Пт Май 19 14:41:22 MSD 2006
On Fri, May 19, 2006 at 01:14:22PM +0400, Alexey I. Froloff wrote:
> * Dmitry V. Levin <ldv@> [060519 12:56]:
> > > А есть шансы
> > Есть.
> Ура!
Уже выложен.
> > > увидеть это в сизифе сегодня, часиков так до 17-18-и?
> > Клёвая у нового компилятора оптимизация, правда?
> А он может в принципе заоптимизить такое:
Он не только может, он уже заоптимизировал.
> ---
> > > tig.c:190: warning: value computed is not used
> > > tig.c:193: warning: value computed is not used
> > I am curious, I copied it from the git project's quote.c file:
>
> > #define EMIT(x) ( (++len < n) && (*bp++ = (x)) )
Да, в git этот код есть, и warning в точности такой же.
Я посмотрел и решил не трогать.
> > does the side-effects hide the warning or does it also apply to
> > the EMIT macro?
> Well, warnings are evil. They can become an error in next
> compiler version. I'm not quite sure, but modern code-optimizers
> can throw away this "unused" code.
Так и есть.
--
ldv
----------- следущая часть -----------
Было удалено вложение не в текстовом формате...
Имя : отсутствует
Тип : application/pgp-signature
Размер : 191 байтов
Описание: отсутствует
Url : http://lists.altlinux.org/pipermail/devel/attachments/20060519/69863b67/attachment.bin
Подробная информация о списке рассылки Devel