On Fri, May 19, 2006 at 01:14:22PM +0400, Alexey I. Froloff wrote: > * Dmitry V. Levin [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