Ticket #363 (new wishlist)

Opened 8 years ago

it's time to use ANSI function prototypes

Reported by: baker Owned by: somebody
Priority: trivial Milestone: All Platforms
Component: ALL modules Version: 7.8
Keywords: Cc:

Description

When I enabled the Intel C compiler option to check for questionable usage, it reports the anachronistic parameter lists in in src/libsrc/util/ew_spectra_io.c:

geo_to_km.c(412): warning #310: old-style parameter list (anachronism)
  double olat, olon, azimuth, dist, *lat, *lon;
         ^

geo_to_km.c(412): warning #310: old-style parameter list (anachronism)
  double olat, olon, azimuth, dist, *lat, *lon;
               ^

geo_to_km.c(412): warning #310: old-style parameter list (anachronism)
  double olat, olon, azimuth, dist, *lat, *lon;
                     ^

geo_to_km.c(412): warning #310: old-style parameter list (anachronism)
  double olat, olon, azimuth, dist, *lat, *lon;
                              ^

geo_to_km.c(412): warning #310: old-style parameter list (anachronism)
  double olat, olon, azimuth, dist, *lat, *lon;
                                     ^

geo_to_km.c(412): warning #310: old-style parameter list (anachronism)
  double olat, olon, azimuth, dist, *lat, *lon;
                                           ^

It is time to use ANSI function prototypes.

Here's a list of the files with old-style parameter lists:

src/libsrc/util/geo_to_km.c
src/data_exchange/liss/DCC_SEED/dcc_misc/log.c
src/display/ew2seisvole/cksum.c
src/seismic_processing/ewintegrate/butterworth_c.c
src/seismic_processing/ewspectra/iir.c
src/seismic_processing/ewaccel/butterworth_c.c
src/seismic_processing/ewshear/iir.c
Note: See TracTickets for help on using tickets.