From a00ab74a9480def91e2d6ffaf265ffff0a623f3c Mon Sep 17 00:00:00 2001 From: Marcelo Matus Date: Mon, 15 Nov 2004 20:58:00 +0000 Subject: [PATCH] minor errors/warings fixes git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6732 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- SWIG/Examples/GIFPlot/Python/full/runme.py | 2 +- SWIG/Examples/GIFPlot/Python/shadow/runme.py | 2 +- SWIG/Examples/perl5/check.list | 1 - SWIG/Examples/ruby/operator/example.i | 3 +++ 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/SWIG/Examples/GIFPlot/Python/full/runme.py b/SWIG/Examples/GIFPlot/Python/full/runme.py index 9f4ada602..cb324c814 100644 --- a/SWIG/Examples/GIFPlot/Python/full/runme.py +++ b/SWIG/Examples/GIFPlot/Python/full/runme.py @@ -49,7 +49,7 @@ def drawsolid(): c2 = cscale*(z2-zmin) c3 = cscale*(z3-zmin) c4 = cscale*(z4-zmin) - c = (c1+c2+c3+c4)/4 + c = int((c1+c2+c3+c4)/4) if (c < 0) : c = 0 if c > 239 : c = 239 Plot3D_solidquad(p3,x,y,z1,x+dx,y,z2,x+dx,y+dy,z3,x,y+dy,z4,c+16) diff --git a/SWIG/Examples/GIFPlot/Python/shadow/runme.py b/SWIG/Examples/GIFPlot/Python/shadow/runme.py index 101b9654c..d91460121 100644 --- a/SWIG/Examples/GIFPlot/Python/shadow/runme.py +++ b/SWIG/Examples/GIFPlot/Python/shadow/runme.py @@ -47,7 +47,7 @@ def drawsolid(): c2 = cscale*(z2-zmin) c3 = cscale*(z3-zmin) c4 = cscale*(z4-zmin) - c = (c1+c2+c3+c4)/4 + c = int((c1+c2+c3+c4)/4) if (c < 0) : c = 0 if c > 239 : c = 239 p3.solidquad(x,y,z1,x+dx,y,z2,x+dx,y+dy,z3,x,y+dy,z4,c+16) diff --git a/SWIG/Examples/perl5/check.list b/SWIG/Examples/perl5/check.list index c7225183a..47596e787 100644 --- a/SWIG/Examples/perl5/check.list +++ b/SWIG/Examples/perl5/check.list @@ -6,7 +6,6 @@ funcptr import mpointer multimap -multiple_inheritance pointer reference simple diff --git a/SWIG/Examples/ruby/operator/example.i b/SWIG/Examples/ruby/operator/example.i index 8d86694b3..cfd6b512b 100644 --- a/SWIG/Examples/ruby/operator/example.i +++ b/SWIG/Examples/ruby/operator/example.i @@ -1,6 +1,9 @@ /* File : example.i */ %module example +%warnfilter(362); + + %{ #include "example.h" %}