diff options
author | Jean-Luc Peurière <jlp@nerim.net> | 2005-06-04 20:22:50 +0400 |
---|---|---|
committer | Jean-Luc Peurière <jlp@nerim.net> | 2005-06-04 20:22:50 +0400 |
commit | f38e0686d909aa0d2882c197aeff59eeefa17081 (patch) | |
tree | 7f2d4a2a3324fa915427bdec590a9654366ed17e /source/blender/python/api2_2x/Text3d.c | |
parent | 0f82931e5fe89ed245a03a4608e524c2423c0d64 (diff) |
new round of warning fixes. we are now down to 24 with Xcode on blender
alone with the following flags :
-Wall -Wno-char-subscripts -Wno-missing-braces.
the only one still worrying me is in rand.c line 57 :
rand.c:57: integer constant is too large for "long" type
but i have no clue about how correct cross-compiler and 32/64 bits friendly
see also my mail to commiter list for signed/unsigned issues
Diffstat (limited to 'source/blender/python/api2_2x/Text3d.c')
-rw-r--r-- | source/blender/python/api2_2x/Text3d.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/source/blender/python/api2_2x/Text3d.c b/source/blender/python/api2_2x/Text3d.c index 44e01e8279d..e9a957648fe 100644 --- a/source/blender/python/api2_2x/Text3d.c +++ b/source/blender/python/api2_2x/Text3d.c @@ -905,7 +905,7 @@ static PyObject *Text3d_getFont( BPy_Text3d * self ) static PyObject *Text3d_setFont( BPy_Text3d * self, PyObject * args ) { BPy_Font *pyobj= NULL; - VFont *vf, *vfont; + VFont *vf; //, *vfont; if( !PyArg_ParseTuple( args, "|O!",&Font_Type, &pyobj) ) return EXPP_ReturnPyObjError( PyExc_TypeError, "expected a string" ); @@ -941,11 +941,14 @@ PyObject *M_Text3d_LoadFont( PyObject * self, PyObject * args ) if( !PyArg_ParseTuple( args, "s", &fontfile ) ) return EXPP_ReturnPyObjError( PyExc_TypeError, "expected a string" ); - if( vf= exist_vfont(fontfile) ) + vf= exist_vfont(fontfile); + if( vf ) return Font_CreatePyObject( vf ); /* return EXPP_incr_ret( Py_None ); */ - else + /* No use for that -- lukep + else vf= NULL; + */ file= fopen( fontfile, "r"); if( file || !strcmp (fontfile, "<builtin>") ) { |