diff options
author | Jean-Luc Peurière <jlp@nerim.net> | 2005-03-14 23:10:22 +0300 |
---|---|---|
committer | Jean-Luc Peurière <jlp@nerim.net> | 2005-03-14 23:10:22 +0300 |
commit | 3ca88c4e7f597d10e8d995a2268dbdc948ff1b7b (patch) | |
tree | 498c58befbbc2a9720cdd58d1510098d29f12cc0 /source | |
parent | 7e2e2b2370b8e01e91f4c904f89760447a00e184 (diff) |
ome more warnings cleaning
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenlib/intern/freetypefont.c | 6 | ||||
-rw-r--r-- | source/blender/makesdna/intern/makesdna.c | 5 | ||||
-rw-r--r-- | source/blender/src/drawscene.c | 1 | ||||
-rw-r--r-- | source/blender/src/edit.c | 1 | ||||
-rw-r--r-- | source/blender/src/meshtools.c | 1 | ||||
-rwxr-xr-x | source/blender/src/transform.c | 6 | ||||
-rwxr-xr-x | source/blender/src/transform_constraints.c | 6 | ||||
-rw-r--r-- | source/gameengine/GameLogic/SCA_PythonController.cpp | 5 |
8 files changed, 18 insertions, 13 deletions
diff --git a/source/blender/blenlib/intern/freetypefont.c b/source/blender/blenlib/intern/freetypefont.c index 6e83e63dd5c..5e1300e9cdf 100644 --- a/source/blender/blenlib/intern/freetypefont.c +++ b/source/blender/blenlib/intern/freetypefont.c @@ -89,7 +89,7 @@ static VFontData *objfnt_to_ftvfontdata(PackedFile * pf) const char *fontname; float scale, height; float dx, dy; - int i, j, k, l, m; + int i, j, k, l, m =0; // load the freetype font err = FT_New_Memory_Face( library, @@ -135,8 +135,8 @@ static VFontData *objfnt_to_ftvfontdata(PackedFile * pf) // extract generic ascii character range for(i = myMIN_ASCII; i <= myMAX_ASCII; i++) { - int *npoints; //total points of each contour - int *onpoints; //num points on curve + int *npoints = NULL; //total points of each contour + int *onpoints = NULL; //num points on curve glyph_index = FT_Get_Char_Index( face, i ); err = FT_Load_Glyph(face, glyph_index, FT_LOAD_NO_SCALE | FT_LOAD_NO_BITMAP); diff --git a/source/blender/makesdna/intern/makesdna.c b/source/blender/makesdna/intern/makesdna.c index fc95c1277d5..52e3f92a40f 100644 --- a/source/blender/makesdna/intern/makesdna.c +++ b/source/blender/makesdna/intern/makesdna.c @@ -464,7 +464,7 @@ int preprocess_include(char *maindata, int len) return newlen; } -void *read_file_data(char *filename, int *len_r) +static void *read_file_data(char *filename, int *len_r) { #ifdef WIN32 FILE *fp= fopen(filename, "rb"); @@ -719,7 +719,6 @@ int calculate_structlens(void) /* 2-4 aligned/ */ if(typelens[type]>3 && (len % 4) ) { printf("Align 4 error in struct: %s %s (add %d padding bytes)\n", types[structtype], cp, len%4); - printf(" \n", len%4); dna_error = 1; } else if(typelens[type]==2 && (len % 2) ) { @@ -1048,7 +1047,7 @@ int make_structDNA(FILE *file) /* ************************* END MAKE DNA ********************** */ -void make_bad_file(char *file) +static void make_bad_file(char *file) { FILE *fp= fopen(file, "w"); fprintf(fp, "ERROR! Cannot make correct DNA.c file, STUPID!\n"); diff --git a/source/blender/src/drawscene.c b/source/blender/src/drawscene.c index 24fd03929d7..03ee91eddd6 100644 --- a/source/blender/src/drawscene.c +++ b/source/blender/src/drawscene.c @@ -50,6 +50,7 @@ #include "BIF_space.h" #include "BIF_drawscene.h" +#include "BIF_poseobject.h" #include "BSE_view.h" diff --git a/source/blender/src/edit.c b/source/blender/src/edit.c index f647ebb66e0..d369888a074 100644 --- a/source/blender/src/edit.c +++ b/source/blender/src/edit.c @@ -73,6 +73,7 @@ #include "BIF_editmesh.h" #include "BIF_editview.h" +#include "BIF_editarmature.h" #include "BIF_gl.h" #include "BIF_glutil.h" #include "BIF_interface.h" diff --git a/source/blender/src/meshtools.c b/source/blender/src/meshtools.c index f0f3fe018a6..4a09bc535ff 100644 --- a/source/blender/src/meshtools.c +++ b/source/blender/src/meshtools.c @@ -84,6 +84,7 @@ void sort_faces(void); #include "BIF_screen.h" #include "BIF_space.h" #include "BIF_toolbox.h" +#include "BIF_editconstraint.h" #include "BDR_editobject.h" diff --git a/source/blender/src/transform.c b/source/blender/src/transform.c index c00929c0dda..b7ed1bb6d1f 100755 --- a/source/blender/src/transform.c +++ b/source/blender/src/transform.c @@ -1715,7 +1715,7 @@ void initResize(TransInfo *t) t->transform = Resize; } -void headerResize(TransInfo *t, float vec[3], char *str) { +static void headerResize(TransInfo *t, float vec[3], char *str) { char tvec[60]; if (hasNumInput(&t->num)) { outputNumInput(&(t->num), tvec); @@ -2161,7 +2161,7 @@ void initTranslation(TransInfo *t) else initgrabz(t->center[0], t->center[1], t->center[2]); } -void headerTranslation(TransInfo *t, float vec[3], char *str) { +static void headerTranslation(TransInfo *t, float vec[3], char *str) { char tvec[60]; if (hasNumInput(&t->num)) { outputNumInput(&(t->num), tvec); @@ -2189,7 +2189,7 @@ void headerTranslation(TransInfo *t, float vec[3], char *str) { } } -void applyTranslation(TransInfo *t, float vec[3]) { +static void applyTranslation(TransInfo *t, float vec[3]) { TransData *td = t->data; float tvec[3]; int i; diff --git a/source/blender/src/transform_constraints.c b/source/blender/src/transform_constraints.c index 40777ee30a3..4baf700f3dc 100755 --- a/source/blender/src/transform_constraints.c +++ b/source/blender/src/transform_constraints.c @@ -372,7 +372,7 @@ static void applyAxisConstraintSize(TransInfo *t, TransData *td, float smat[3][3 * */ -void applyObjectConstraintSize(TransInfo *t, TransData *td, float smat[3][3]) +static void applyObjectConstraintSize(TransInfo *t, TransData *td, float smat[3][3]) { if (td && t->con.mode & CON_APPLY) { float tmat[3][3]; @@ -449,7 +449,7 @@ static void applyAxisConstraintRot(TransInfo *t, TransData *td, float vec[3]) * (ie: not doing counterclockwise rotations when the mouse moves clockwise). */ -void applyObjectConstraintRot(TransInfo *t, TransData *td, float vec[3]) +static void applyObjectConstraintRot(TransInfo *t, TransData *td, float vec[3]) { if (td && t->con.mode & CON_APPLY) { int mode = t->con.mode & (CON_AXIS0|CON_AXIS1|CON_AXIS2); @@ -476,7 +476,7 @@ void applyObjectConstraintRot(TransInfo *t, TransData *td, float vec[3]) } } -void drawObjectConstraint(TransInfo *t) { +static void drawObjectConstraint(TransInfo *t) { int i; TransData * td = t->data; diff --git a/source/gameengine/GameLogic/SCA_PythonController.cpp b/source/gameengine/GameLogic/SCA_PythonController.cpp index 3a7932fa51c..01afd16e963 100644 --- a/source/gameengine/GameLogic/SCA_PythonController.cpp +++ b/source/gameengine/GameLogic/SCA_PythonController.cpp @@ -128,7 +128,9 @@ void SCA_PythonController::SetDictionary(PyObject* pythondictionary) m_pythondictionary = PyDict_Copy(pythondictionary); /* new reference */ } +#if 0 static char* sPyGetCurrentController__doc__; +#endif PyObject* SCA_PythonController::sPyGetCurrentController(PyObject* self, @@ -139,8 +141,9 @@ PyObject* SCA_PythonController::sPyGetCurrentController(PyObject* self, return m_sCurrentController; } - +#if 0 static char* sPyAddActiveActuator__doc__; +#endif PyObject* SCA_PythonController::sPyAddActiveActuator( |