ome more warnings cleaning
This commit is contained in:
@@ -5,6 +5,13 @@ typedef int shortint;
|
||||
/* prototypes -------------------- */
|
||||
int genmmd_(int *, int *, int *, int *, int *, int *, int *,
|
||||
int *, int *, int *, int *, int *);
|
||||
int mmdint_(int *, int *, shortint *, shortint *, shortint *, shortint *, shortint *,
|
||||
shortint *, shortint *);
|
||||
int mmdelm_(int *, int *, shortint *, shortint *, shortint *, shortint *, shortint *,
|
||||
shortint *, shortint *, int *, int *);
|
||||
int mmdupd_(int *, int *, int *, shortint *, int *, int *, shortint *,
|
||||
shortint *, shortint *, shortint *, shortint *, shortint *, int *, int *);
|
||||
int mmdnum_(int *, shortint *, shortint *, shortint *);
|
||||
|
||||
|
||||
/* *************************************************************** */
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
void susolve(int, int, float*, float*);
|
||||
void slsolve(int, int, float*, float*);
|
||||
void smatvec(int, int, int, float*, float*, float*);
|
||||
|
||||
void sprint_soln(int , float *);
|
||||
|
||||
void
|
||||
sgstrs (trans_t trans, SuperMatrix *L, SuperMatrix *U,
|
||||
|
||||
@@ -20,6 +20,13 @@
|
||||
* triangular matrix is stored in a 2D array M(1:nrow,1:ncol).
|
||||
* The solution will be returned in the rhs vector.
|
||||
*/
|
||||
|
||||
/* local prototypes*/
|
||||
void slsolve ( int, int, float *, float *);
|
||||
void susolve ( int, int, float *, float *);
|
||||
void smatvec ( int, int, int, float *, float *, float *);
|
||||
|
||||
|
||||
void slsolve ( int ldm, int ncol, float *M, float *rhs )
|
||||
{
|
||||
int k;
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
int strsv_(char *, char *, char *, int *, float *, int *, float *, int *);
|
||||
|
||||
|
||||
/* Subroutine */ int strsv_(char *uplo, char *trans, char *diag, int *n,
|
||||
float *a, int *lda, float *x, int *incx)
|
||||
|
||||
@@ -36,8 +36,9 @@ double SuperLU_timer_() {
|
||||
#ifndef CLK_TCK
|
||||
#define CLK_TCK 60
|
||||
#endif
|
||||
double SuperLU_timer_(void);
|
||||
|
||||
double SuperLU_timer_()
|
||||
double SuperLU_timer_(void)
|
||||
{
|
||||
#ifdef NO_TIMER
|
||||
/* no sys/times.h on WIN32 */
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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");
|
||||
|
||||
@@ -50,6 +50,7 @@
|
||||
|
||||
#include "BIF_space.h"
|
||||
#include "BIF_drawscene.h"
|
||||
#include "BIF_poseobject.h"
|
||||
|
||||
#include "BSE_view.h"
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user