Re: WARNS=3 and C++ on 8.x

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
Cc: <current@...>
Date: Thursday, December 20, 2007 - 9:01 am

On Wed, 19 Dec 2007 19:49:43 -0500
Mikhail Teterin <mi+mill@aldan.algebra.com> wrote:

ole/olestorg.cpp:20:
c_ios.h:156:

The code below is from /usr/include/c++/4.2/exception_defines.h and as
you can see, WARNS3 alone is not enough, -fno-exceptions has to be on
the command line too, something you forgot to mention. There's nothing
to fix in FreeBSD itself, the change should go into vendor sources.=20


#ifndef __EXCEPTIONS
// Iff -fno-exceptions, transform error handling code to work without
it. # define try      if (true)
# define catch(X) if (false)
# define __throw_exception_again
#else
// Else proceed normally.
# define __throw_exception_again throw
#endif




--=20
Alexander Kabaev
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
WARNS=3 and C++ on 8.x, Mikhail Teterin, (Wed Dec 19, 8:49 pm)
Re: WARNS=3 and C++ on 8.x, Alexander Kabaev, (Thu Dec 20, 9:01 am)
Re: WARNS=3 and C++ on 8.x, Aryeh M. Friedman, (Thu Dec 20, 1:26 am)
Re: WARNS=3 and C++ on 8.x, Mikhail Teterin, (Thu Dec 20, 6:00 am)
Re: WARNS=3 and C++ on 8.x, Aryeh M. Friedman, (Thu Dec 20, 6:02 am)
Re: WARNS=3 and C++ on 8.x, Mikhail Teterin, (Thu Dec 20, 6:11 am)
Re: WARNS=3 and C++ on 8.x, Aryeh M. Friedman, (Thu Dec 20, 6:13 am)