Resolves building issues with Intel compilers (ifx/icx) (#1823)
commitae0906eae9582c4d60cf85aec2bea90ec8598808
authorAlexander (Alex) Knyazev <alexander.knyazev@intel.com>
Fri, 8 Dec 2023 07:54:16 +0000 (8 07:54 +0000)
committerGitHub <noreply@github.com>
Fri, 8 Dec 2023 07:54:16 +0000 (8 00:54 -0700)
treed7abea481396f1592483a7750c57b72f699ff959
parent414c1bf5ec8fd88d2d1f7d7d5dfed55f104b7f82
Resolves building issues with Intel compilers (ifx/icx) (#1823)

Adding/Replacing missing prototypes. Remove unsupported/bogus compiler switches.

TYPE: Bug fix

KEYWORDS: Missing prototypes, old unsupported compile options

SOURCE:  Alexander Knyazev

DESCRIPTION OF CHANGES:
Problem:  Most C code written long ago.  No prototypes were used.

Solution:
Add missing prototypes.

LIST OF MODIFIED FILES:

external/io_grib1/grib1_util/read_grib.c
external/io_grib1/grib1_util/write_grib.c
external/io_grib1/grib1_util/read_grib.h
external/io_grib1/MEL_grib1/FTP_getfile.c
external/io_grib1/MEL_grib1/gribfuncs.h
external/io_grib1/MEL_grib1/gribgetbds.c
external/io_grib1/MEL_grib1/upd_child_errmsg.c
external/io_grib1/MEL_grib1/gribhdr2file.c
external/io_grib1/MEL_grib1/init_enc_struct.c
external/io_grib1/MEL_grib1/init_gribhdr.c
external/io_grib1/MEL_grib1/init_struct.c
external/io_grib1/MEL_grib1/ld_enc_input.c
external/io_grib1/MEL_grib1/ld_enc_lookup.c
external/io_grib1/MEL_grib1/map_lvl.c
external/io_grib1/MEL_grib1/map_parm.c
external/io_grib1/MEL_grib1/prt_inp_struct.c
external/io_grib1/MEL_grib1/prt_badmsg.c
external/io_grib1/MEL_grib1/set_bytes.c
external/io_grib1/MEL_grib1/ld_grib_origctrs.c
external/io_grib1/gribmap.c
external/io_grib1/grib1_routines.c
external/io_grib1/gribmap.h
external/io_grib1/trim.c
external/io_grib1/trim.h
external/io_grib_share/get_region_center.c
external/io_grib_share/open_file.c
external/RSL_LITE/gen_comms.c
external/RSL_LITE/c_code.c
external/RSL_LITE/buf_for_proc.c
external/RSL_LITE/rsl_malloc.c
external/RSL_LITE/rsl_bcast.c
external/RSL_LITE/task_for_point.c
external/RSL_LITE/period.c
external/RSL_LITE/swap.c
external/RSL_LITE/cycle.c
external/RSL_LITE/rsl_lite.h
tools/protos.h
tools/reg_parse.c
tools/misc.c
tools/symtab_gen.c
tools/gen_config.c
tools/sym.c
tools/gen_streams.c
tools/gen_irr_diag.c
tools/sym.h
frame/pack_utils.c
arch/configure.defaults

TESTS CONDUCTED:
1. Compilation with Intel oneAPI compiler works with these changes.
2. The Jenkins tests are all passing.

RELEASE NOTE: This PR fixed some c code by adding and replacing missing prototypes. This also allows the new Intel oneAPI compiler to work. Remove unsupported/bogus compiler switches.
47 files changed:
arch/configure.defaults
external/RSL_LITE/buf_for_proc.c
external/RSL_LITE/c_code.c
external/RSL_LITE/cycle.c
external/RSL_LITE/gen_comms.c
external/RSL_LITE/period.c
external/RSL_LITE/rsl_bcast.c
external/RSL_LITE/rsl_lite.h
external/RSL_LITE/rsl_malloc.c
external/RSL_LITE/swap.c
external/RSL_LITE/task_for_point.c
external/io_grib1/MEL_grib1/FTP_getfile.c
external/io_grib1/MEL_grib1/gribfuncs.h
external/io_grib1/MEL_grib1/gribgetbds.c
external/io_grib1/MEL_grib1/gribhdr2file.c
external/io_grib1/MEL_grib1/init_enc_struct.c
external/io_grib1/MEL_grib1/init_gribhdr.c
external/io_grib1/MEL_grib1/init_struct.c
external/io_grib1/MEL_grib1/ld_enc_input.c
external/io_grib1/MEL_grib1/ld_enc_lookup.c
external/io_grib1/MEL_grib1/ld_grib_origctrs.c
external/io_grib1/MEL_grib1/map_lvl.c
external/io_grib1/MEL_grib1/map_parm.c
external/io_grib1/MEL_grib1/prt_badmsg.c
external/io_grib1/MEL_grib1/prt_inp_struct.c
external/io_grib1/MEL_grib1/set_bytes.c
external/io_grib1/MEL_grib1/upd_child_errmsg.c
external/io_grib1/grib1_routines.c
external/io_grib1/grib1_util/read_grib.c
external/io_grib1/grib1_util/read_grib.h
external/io_grib1/grib1_util/write_grib.c
external/io_grib1/gribmap.c
external/io_grib1/gribmap.h
external/io_grib1/trim.c
external/io_grib1/trim.h [new file with mode: 0644]
external/io_grib_share/get_region_center.c
external/io_grib_share/open_file.c
frame/pack_utils.c
tools/gen_config.c
tools/gen_irr_diag.c
tools/gen_streams.c
tools/misc.c
tools/protos.h
tools/reg_parse.c
tools/sym.c
tools/sym.h
tools/symtab_gen.c