Manta Interactive Ray Tracer Development Mailing List

Text archives Help


[MANTA] r1601 - trunk/SwigInterface


Chronological Thread 
  • From: bigler@sci.utah.edu
  • To: manta@sci.utah.edu
  • Subject: [MANTA] r1601 - trunk/SwigInterface
  • Date: Thu, 2 Aug 2007 12:20:42 -0600 (MDT)

Author: bigler
Date: Thu Aug  2 12:20:41 2007
New Revision: 1601

Modified:
   trunk/SwigInterface/CMakeLists.txt
   trunk/SwigInterface/manta.i
Log:
SwigInterface/CMakeLists.txt

  Turn off uninitialized variable warning for SWIG generated
  mantaPYTHON_wrap.cc. There was only one of them, and GCC wasn't
  detecting that the variable was getting initialized by a function it
  was passed in to.

SwigInterface/manta.i

  Turn off multiple template warning for TileTexture.


Modified: trunk/SwigInterface/CMakeLists.txt
==============================================================================
--- trunk/SwigInterface/CMakeLists.txt  (original)
+++ trunk/SwigInterface/CMakeLists.txt  Thu Aug  2 12:20:41 2007
@@ -62,6 +62,19 @@
 SET_SOURCE_FILES_PROPERTIES(manta.i PROPERTIES SWIG_FLAGS 
"${MANTA_SWIG_FLAGS}")
 SWIG_ADD_MODULE(manta python manta.i manta.cc manta.h)
 
+# Squash some warnings
+SET(swig_generated_file_extra_flags)
+IF   (USING_GCC)
+  SET(swig_generated_file_extra_flags ${swig_generated_file_extra_flags}
+    -Wno-uninitialized)
+ENDIF(USING_GCC)
+
+IF(swig_generated_file_extra_flags)
+  SET_SOURCE_FILES_PROPERTIES(${swig_generated_sources}
+    COMPILE_FLAGS ${swig_generated_file_extra_flags}
+    )
+ENDIF(swig_generated_file_extra_flags)
+
 SWIG_LINK_LIBRARIES(manta
   ${PYTHON_LIBRARIES}
   ${MANTA_TARGET_LINK_LIBRARIES}

Modified: trunk/SwigInterface/manta.i
==============================================================================
--- trunk/SwigInterface/manta.i (original)
+++ trunk/SwigInterface/manta.i Thu Aug  2 12:20:41 2007
@@ -198,6 +198,7 @@
   // things when you have Manta::Real == Manta::ColorComponent.
   %warnfilter(404) Texture<Manta::ColorComponent>;
   %warnfilter(404) CheckerTexture<Manta::ColorComponent>;
+  %warnfilter(404) TileTexture<Manta::ColorComponent>;
 
   %template(Texture_Color) Texture<Color>;
   %template(Texture_Real) Texture<Manta::Real>;




  • [MANTA] r1601 - trunk/SwigInterface, bigler, 08/02/2007

Archive powered by MHonArc 2.6.16.

Top of page