Use MSVC's WD flag to disable the warning. You'll probably need to hack
wntmsci11.mk...
On 5 Mar 2014 08:31, "Andre Fischer" <awf....@gmail.com> wrote:

> I am currently working on some bug in the sc module and find that it is
> really hard to even find compiler errors among the many warning messages.
>  Some of these warnings are caused directly by code in sc but the majority
> of the warnings originate in header files.  Platform is Windows.  The most
> annoying warnings are
>
>
>    warning C4530: C++ exception handler used, but unwind semantics are not
> enabled. Specify /EHsc
>
> and even more (because of the warning text that is repeated again and
> again)
>
> warning C4555: expression has no effect; expected expression with
> side-effect
>
> (see full text below)
>
>
> Any ideas how to silence these two?
>
>  re C4530: One option would be to compile all sc code with exceptions
> enabled.  Does anyone know of a reason not to do that?
>
>
> Best regards,
>
> Andre
>
>
>
> PS: here is the complete output for one instance of the C4555 warning:
>
>   C:\PROGRA~2\MICROS~1.0\VC\include\../../VC/include/list(1137) : warning
> C4555: expression has no effect; expected expression with side-effect
> C:\PROGRA~2\MICROS~1.0\VC\include\../../VC/include/list(1126) : while
> compiling class template member function 'void std::list<_Ty,_Ax>::_Splice(
> std::list<_Ty,_Ax>::_Const_iterator<_Secure_validation>,std::list<_Ty,_Ax>
> &,std::list<_Ty,_Ax>::_Const_iterator<_Secure_validation>,
> std::list<_Ty,_Ax>::_Const_iterator<_Secure_validation>,unsigned
> int,bool)'
>         with
>         [
>             _Ty=std::pair<const String,OpCode>,
>             _Ax=std::allocator<std::pair<const String,OpCode>>,
>             _Secure_validation=true
>         ]
>         C:\PROGRA~2\MICROS~1.0\VC\include\xhash(205) : see reference to
> class template instantiation 'std::list<_Ty,_Ax>' being compiled
>         with
>         [
>             _Ty=std::pair<const String,OpCode>,
>             _Ax=std::allocator<std::pair<const String,OpCode>>
>         ]
> C:\PROGRA~2\MICROS~1.0\VC\include\../../VC/include/unordered_map(86) :
> see reference to class template instantiation 'stdext::_Hash<_Traits>'
> being compiled
>         with
>         [
> _Traits=std::tr1::_Umap_traits<String,OpCode,stdext::_
> Hash_compare<String,formula::StringHashCode,std::equal_to<
> String>>,std::allocator<std::pair<String,OpCode>>,false>
>         ]
> C:\source\trunk\git\main\solver\410\wntmsci12.pro\inc\stl\hash_map(59) :
> see reference to class template instantiation 
> 'std::tr1::unordered_map<_Kty,_Ty,_Hasher,_Keyeq,_Alloc>'
> being compiled
>         with
>         [
>             _Kty=String,
>             _Ty=OpCode,
>             _Hasher=formula::StringHashCode,
>             _Keyeq=std::equal_to<String>,
> _Alloc=std::allocator<std::pair<String,OpCode>>
>         ]
> C:\source\trunk\git\main\solver\410\wntmsci12.pro\inc\
> formula/FormulaCompiler.hxx(109) : see reference to class template
> instantiation 'std::hash_map<__K,__T,__H,__E>' being compiled
>         with
>         [
>             __K=String,
>             __T=OpCode,
>             __H=formula::StringHashCode,
>             __E=std::equal_to<String>
>         ]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
> For additional commands, e-mail: dev-h...@openoffice.apache.org
>
>

Reply via email to