Commit 509cdfb0 authored by Sébastien Timmermans's avatar Sébastien Timmermans
Browse files

suppressions of warnings ...

parent 8bc3c7f5
......@@ -788,9 +788,9 @@ double loop_dopri5(double cur_t0, double cur_tf, double dt0, double **dopri5_all
* \param[in,out] s Robotran main structure
* \param[in,out] dd direct dynamic main module structure
*/
void fcn_dopri5(unsigned n, long nr, double tsim, double y[], double dydt[], MbsData *s, MbsDirdyn *dd)
void fcn_dopri5(unsigned int n, long nr, double tsim, double y[], double dydt[], MbsData *s, MbsDirdyn *dd)
{
int i;
unsigned int i;
double *dydt_save;
dydt_save = dd->dopri5->dydt_save;
......
......@@ -113,7 +113,7 @@ void mbs_dirdyn_write_buffers(MbsDirdyn* dd);
void mbs_fct_dirdyn(double t, double y[], double dydt[], MbsData *s, MbsDirdyn *dd);
void save_realtime_update(MbsDirdyn* dd, MbsData* mbs_data);
double loop_dopri5(double cur_t0, double cur_tf, double dt0, double **dopri5_alloc_tab, MbsData *s, MbsDirdyn *dd, FILE *fileout_dopri5);
void fcn_dopri5(unsigned n, long nr, double tsim, double y[], double dydt[], MbsData *s, MbsDirdyn *dd);
void fcn_dopri5(unsigned int n, long nr, double tsim, double y[], double dydt[], MbsData *s, MbsDirdyn *dd);
void solout_dopri5(long nr, double tsim_old, double tsim, double y[], unsigned n, int* irtrn, int init_flag, MbsData *s, MbsDirdyn *dd);
double loop_rosenbrock(double t0, double tf, double dt0, MbsData *s, MbsDirdyn *dd, FILE *fileout_dopri5);
......
......@@ -40,7 +40,7 @@ int eig_0(double **in_matrix, int n, double *eval_a, double *eval_b, double **em
gsl_eigen_nonsymmv_workspace * w = gsl_eigen_nonsymmv_alloc(n);
ind_max_r = 0.0; // Q?? line added needed for some project but not forl all... non sense ?
ind_max_r = 0; // Q?? line added needed for some project but not forl all... non sense ?
for (i = 0; i < n; i++)
{
for (j = 0; j < n; j++)
......@@ -110,7 +110,7 @@ int eig_schur_0(double **in_matrix, int n, double *eval_a, double *eval_b, doubl
gsl_eigen_nonsymm_workspace * w = gsl_eigen_nonsymm_alloc(n);
ind_max_r = 0.0; // Q?? line added needed for some project but not forl all... non sense ?
ind_max_r = 0; // Q?? line added needed for some project but not forl all... non sense ?
for (i = 0; i < n; i++)
{
for (j = 0; j < n; j++)
......
......@@ -482,7 +482,7 @@ void compute_buffer_size(Realtime_option *options)
{
if (options->buffer_size <= 0)
{
options->buffer_size = ((options->tf - options->t0) / options->dt0) + 1; // size of the SDL buffer [-], if possible, equal (or higher) to the number of time steps
options->buffer_size = (int) ((options->tf - options->t0) / options->dt0) + 1; // size of the SDL buffer [-], if possible, equal (or higher) to the number of time steps
}
}
......
......@@ -37,7 +37,7 @@ int gettimeofday (struct timeval *tp, void *tz)
{
struct _timeb timebuffer;
_ftime (&timebuffer);
tp->tv_sec = timebuffer.time;
tp->tv_sec = (long) timebuffer.time;
tp->tv_usec = timebuffer.millitm * 1000;
return 0;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment