Remove compiler warnings

This commit is contained in:
Holger Vogt 2026-02-03 15:05:24 +01:00
parent ab87bd57a4
commit 417c52ee5c
2 changed files with 2 additions and 2 deletions

View File

@ -369,7 +369,6 @@ cx_avg(void *data, short int type, int length, int *newlength, short int *newtyp
void*
cx_m3avg(void* data, short int type, int length, int* newlength, short int* newtype)
{
double sum_real = 0.0, sum_imag = 0.0;
int i;
if (type == VF_REAL) {

View File

@ -1028,7 +1028,7 @@ cx_mtimeavg(void* data, short int type, int length, int* newlength, short int* n
return (NULL);
}
if (!cp_getvar("mtimeavgwindow", CP_REAL, &tdelta, 0))
if (!cp_getvar("mtimeavgwindow", CP_REAL, &tdelta, 0)) {
if (ft_curckt == (struct circ*)NULL) {
tdelta = 1e-6;
fprintf(cp_out, "Note: mtimeavgwindow not given, window set to %g s\n", tdelta);
@ -1038,6 +1038,7 @@ cx_mtimeavg(void* data, short int type, int length, int* newlength, short int* n
tdelta = 10.0 * ckt->CKTstep;
fprintf(cp_out, "Note: mtimeavgwindow not given, window set to %g s\n", tdelta);
}
}
sc = pl->pl_scale;
dsc = sc->v_realdata;