Re: [gtk-list] Re: Gtk--: how to disconnect (Button) objects



Havoc Pennington <rhpennin@midway.uchicago.edu> writes:
> > TFGui.cc:185: warning: initialization of non-const reference
> >      `class Connection &' from rvalue `Connection'
> > /usr/local/include/gtk--sigcommon.h:93: warning: in passing
> >      argument 1 of `Connection::operator =(Connection &)'
> > 
> 
> I get this warning too. I think operator= should take a const 
> argument. I can fix this in CVS.
> 
> However, things still work properly so it's just a cosmetic thing.

This thing is because you dont have GTKMM_HAVE_MUTABLE defined. It should
be there if your compiler supports mutable... Newer gtk-- versions include
automatically gtk--config.h that has the define properly set - with older
gtk-- you need to do that manually.

However, if your compiler doesnt support mutable, then you have to
watch ugly warnings :) (gcc2.7.2 I think gives the warning...)

-- 
-- Tero Pulkkinen -- terop@modeemi.cs.tut.fi --



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]