Skip to content

Commit 9cbd9c8

Browse files
committed
compilation
1 parent 3cc0422 commit 9cbd9c8

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

user/jsun/cfft2omp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ void icfft2(sf_complex *out /* [n1*n2] */,
179179
}
180180
}
181181

182-
void cfft2_finalize()
182+
void cfft2_finalize(void)
183183
/*< clean up fft >*/
184184
{
185185
/* make sure everything is back to its pristine state */

user/jsun/cfft2w.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ void icfft2(sf_complex *out /* [n1*n2] */,
202202
}
203203
}
204204

205-
void cfft2_finalize()
205+
void cfft2_finalize(void)
206206
/*< clean up fftw >*/
207207
{
208208
/* make sure everything is back to its pristine state */

user/jsun/cfft3w.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ void icfft3(sf_complex *out /* [n1*n2*n3] */,
260260
}
261261
}
262262

263-
void cfft3_finalize()
263+
void cfft3_finalize(void)
264264
/*< clean up fftw >*/
265265
{
266266
#ifdef SF_HAS_FFTW

user/jsun/timer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
double gtod_secbase = 0.0E0;
2424

25-
double gtod_timer()
25+
double gtod_timer(void)
2626
/*< get time >*/
2727
{
2828
struct timeval tv;

user/jsun/waveutils.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ int rcvill2(float **sill, sf_complex **rcd, geopar geop)
540540
/* pointers */
541541
sf_complex **lt, **rt;
542542

543-
int it,iz,im,ik,ix,i,j,wfit; /* index variables */
543+
int it,iz,im,ik,ix,i,j; /* index variables */
544544
int nk, nz2, nx2, nzx2;
545545
sf_complex c;
546546
sf_complex *cwave, *cwavem;
@@ -591,7 +591,7 @@ int rcvill2(float **sill, sf_complex **rcd, geopar geop)
591591

592592
/* step backward in time (PSPI) */
593593
/*Main loop*/
594-
wfit = (int)(nt-1)/snpint;
594+
/* wfit = (int)(nt-1)/snpint; */
595595
for (it = nt-1; it>=0; it--) {
596596
if (verb) sf_warning("Backward receiver it=%d/%d;", it, nt-1);
597597
#ifdef _OPENMP
@@ -617,7 +617,7 @@ int rcvill2(float **sill, sf_complex **rcd, geopar geop)
617617
sill[ix][iz] += pow(hypotf(crealf(curr[j]),cimagf(curr[j])),2);
618618
}
619619
}
620-
wfit--;
620+
/* wfit--; */
621621
}
622622

623623
/*matrix multiplication*/

user/tariq/omputil.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99

1010
/*------------------------------------------------------------*/
11-
int omp_init()
11+
int omp_init(void)
1212
/*< init OMP parameters >*/
1313
{
1414
int ompnth;

0 commit comments

Comments
 (0)