Re: [sigc] Warning compiling 2.0.3 on Tru64 UNIX 5.1



Am 20.08.2004 09:06:21 schrieb(en) Martin Schulze:
Am 19.08.2004 23:54:54 schrieb(en) Albert Chin:
On Thu, Aug 19, 2004 at 04:17:40PM -0500, Albert Chin wrote:
> I received the following error while building libsigc++-2.0.3 on
Tru64
> UNIX 5.1 with the Compaq C++ compiler:
>   ...
>   cxx  -I. -I. -I.. -I.. -I..    -O2 -readonly_strings
-timplicit_local -D__USE_STD_IOSTREAM -c -o test_retype_return.o `test
-f 'test_retype_return.cc' || echo './'`test_retype_return.cc
>   cxx: Warning: test_retype_return.cc, line 14: missing return
statement at end
>             of non-void function "foo::operator()(int)"
>       {std::cout << "foo(int "<<i<<")"<<std::endl;}
>   ------------------------------------------------^
>
> Looking in tests/test_retype_return.cc, I see:
>   struct foo : public sigc::functor_base
>   {
>     typedef float result_type;
>     float operator()(int i)
>       {std::cout << "foo(int "<<i<<")"<<std::endl;}
>     float operator()(float i)
>       {std::cout << "foo(float "<<i<<")"<<std::endl; return i*5;}
>   };
>
> So, it looks like the warning is correct.

This is fixed in CVS.

Thanks!

I guess that means that libsigc++2 (cvs) compiles with the Compaq C++ compiler?! We can add this one to the list of supported platforms, then!

Forget it - I'm just reading the other messages ...

Martin





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