mail[Wesnoth-commits] r36531 - /trunk/src/ai/composite/engine_fai.cpp


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by kailoran on July 02, 2009 - 21:31:
Author: ilor
Date: Thu Jul  2 21:31:39 2009
New Revision: 36531

URL: http://svn.gna.org/viewcvs/wesnoth?rev=36531&view=rev
Log:
disable one more (actually, 60) inherits-via-dominance warnings in VC9

Modified:
    trunk/src/ai/composite/engine_fai.cpp

Modified: trunk/src/ai/composite/engine_fai.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/ai/composite/engine_fai.cpp?rev=36531&r1=36530&r2=36531&view=diff
==============================================================================
--- trunk/src/ai/composite/engine_fai.cpp (original)
+++ trunk/src/ai/composite/engine_fai.cpp Thu Jul  2 21:31:39 2009
@@ -32,6 +32,12 @@
 #define LOG_AI_COMPOSITE_ENGINE_FAI LOG_STREAM(info, 
log_ai_composite_engine_fai)
 #define ERR_AI_COMPOSITE_ENGINE_FAI LOG_STREAM(err, 
log_ai_composite_engine_fai)
 
+#ifdef _MSC_VER
+#pragma warning(push)
+//silence "inherits via dominance" warnings
+#pragma warning(disable:4250)
+#endif
+
 class fai_candidate_action_wrapper : public candidate_action {
 public:
        fai_candidate_action_wrapper( rca_context &context, const config 
&/*cfg*/, game_logic::candidate_action_ptr fai_ca, formula_ai &_formula_ai )
@@ -59,6 +65,9 @@
        formula_ai &formula_ai_;
 };
 
+#ifdef _MSC_VER
+#pragma warning(pop)
+#endif
 
 engine_fai::engine_fai( composite_ai_context &context, const config &cfg )
        : engine(context,cfg), formula_ai_(context)




Related Messages


Powered by MHonArc, Updated Thu Jul 02 23:40:36 2009