[Bf-committers] Re: [Bf-blender-cvs] CVS commit: blender/source/blender/python/api2_2x NMesh.c
Ton Roosendaal
bf-committers@blender.org
Mon, 13 Oct 2003 16:24:34 +0200
Hi Joseph,
I doubt the irix compiler is crazy... so warnings/errors like this:
> A value of type "int" cannot be assigned to an entity of type "int
> *".
> The types of operands "int *" and "int" are incompatible.
> A value of type "int" cannot be assigned to an entity of type
> "bDeformGroup *".
Should never happen! They indicate real errors.
If you need to do pointer calculus, use in Blender the long. It is
defined as 64 bits int for 64 bits cpus, and 32 bits int for 32 bits
cpus.
Never cast a pointer to an int!
Warnings like this shouldn't happen either:
> The indicated function is declared implicitly.
And this is one you should get rid of after you finish up a coding
project:
> The variable "nIndex" was declared but never referenced.
Welcome aboard!
-Ton-
BTW: of course this applies for everyone!
BTW2: oh I miss these nice elaborate warnings of irix cc... can gcc do
this too!?
------------------------------------------------------------------------
--
Ton Roosendaal Blender Foundation ton@blender.org
http://www.blender.org