Re: [sigc] ANNOUNCE: libsigc++ 2.0.2



Martin Schulze schrieb:
*** Changes:

2.0.2:

* Suppress compiler warning in compatibility module at
 dynamic_cast<>-test (fix suggested by Timothy M. Shead).

The warning only changed ("unused variable" -> "statement with no effect"). Perhaps casting to void might silence the compiler.

/usr/include/sigc++-2.0/sigc++/object_slot.h:45: Warnung: statement with no effect


* If a custom accumulator is specified invoke it on signal
 emission even if the signal's slot list is empty. (This used
 to be the case in libsigc++-1.2 as pointed out by Timothy.)

This was fixed somewhat hastily:

The following program simply segfaults with 2.0.2:

--------
#include <sigc++/signal.h>

int main()
{  sigc::signal0<void> s;

   s();
   return 0;
}
--------

Yours
   Christof

PS: Similar (signal1) backtrace:
#0 0x1010c168 in std::list<sigc::slot_base, std::allocator<sigc::slot_base> >::empty (this=0x8) at stl_list.h:628 #1 0x1010bdc0 in sigc::internal::signal_emit1<void, void*, sigc::nil>::emit (
    impl=0x0, _A_a1= 0x7fffc890) at signal.h:616
#2  0x1010bd78 in sigc::signal1<void, void*, sigc::nil>::emit (
    this=0x103be248, _A_a1= 0x7fffc890) at signal.h:1637
#3  0x1010bd34 in sigc::signal1<void, void*, sigc::nil>::operator() (
    this=0x103be248, _A_a1= 0x7fffc890) at signal.h:1641



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