Pavel Sanda wrote:
Abdelrazak Younes wrote:
Hum, I don't understand why you see this warning only here. This type of
assignment is used many times elsewhere in the source code...
where?
you...@younes:~/devel/lyx/trunk/src$ grep -r 'if (Buffer' *
frontends/qt4/GuiApplication.cpp: if (Buffer const * ptr =
(*it)->updateInset(inset))
frontends/qt4/GuiView.cpp: if (Buffer * buf =
buffer()) {
Maybe the difference is that this is a local variable to the if
condition. Still I think your warning is bogus. What gcc version do you
use? I use 4.3.3 and I don't see any warning.
Abdel.