mirror of https://github.com/ecmwf/eccodes.git
Clang 17 compiler warnings
This commit is contained in:
parent
d10140227d
commit
95539f79dd
|
@ -14,7 +14,7 @@
|
||||||
#include "eccodes.h"
|
#include "eccodes.h"
|
||||||
|
|
||||||
/* See JIRA issue GRIB-361 */
|
/* See JIRA issue GRIB-361 */
|
||||||
int main()
|
int main(void)
|
||||||
{
|
{
|
||||||
const int ni = 2880;
|
const int ni = 2880;
|
||||||
const int nj = 2880;
|
const int nj = 2880;
|
||||||
|
|
|
@ -12,7 +12,7 @@ program codes_dump_test
|
||||||
implicit none
|
implicit none
|
||||||
integer :: ifile, iret, msgid
|
integer :: ifile, iret, msgid
|
||||||
integer :: product_kind
|
integer :: product_kind
|
||||||
character(len=10) :: product_string
|
character(len=512) :: product_string
|
||||||
character(len=512) :: infile_name
|
character(len=512) :: infile_name
|
||||||
|
|
||||||
call getarg(1, product_string)
|
call getarg(1, product_string)
|
||||||
|
|
|
@ -13,10 +13,10 @@ program grib_count_messages_multi
|
||||||
use eccodes
|
use eccodes
|
||||||
implicit none
|
implicit none
|
||||||
|
|
||||||
integer :: ifile
|
integer :: ifile
|
||||||
character(len=100) :: grib_file
|
character(len=100) :: multi_flag
|
||||||
integer :: n, stat
|
character(len=100) :: grib_file
|
||||||
character(len=1) :: multi_flag
|
integer :: n, stat
|
||||||
|
|
||||||
call getarg(1, multi_flag)
|
call getarg(1, multi_flag)
|
||||||
call getarg(2, grib_file)
|
call getarg(2, grib_file)
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
! virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
! virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
||||||
!
|
!
|
||||||
!
|
!
|
||||||
program grib_read_bytes
|
program read_bytes
|
||||||
use eccodes
|
use eccodes
|
||||||
implicit none
|
implicit none
|
||||||
integer :: ifile
|
integer :: ifile
|
||||||
|
|
|
@ -41,7 +41,7 @@ static pthread_mutex_t multi_handle_mutex = PTHREAD_MUTEX_INITIALIZER;
|
||||||
static pthread_mutex_t iterator_mutex = PTHREAD_MUTEX_INITIALIZER;
|
static pthread_mutex_t iterator_mutex = PTHREAD_MUTEX_INITIALIZER;
|
||||||
static pthread_mutex_t keys_iterator_mutex = PTHREAD_MUTEX_INITIALIZER;
|
static pthread_mutex_t keys_iterator_mutex = PTHREAD_MUTEX_INITIALIZER;
|
||||||
|
|
||||||
static void init() {
|
static void init(void) {
|
||||||
pthread_mutexattr_t attr;
|
pthread_mutexattr_t attr;
|
||||||
|
|
||||||
pthread_mutexattr_init(&attr);
|
pthread_mutexattr_init(&attr);
|
||||||
|
@ -996,13 +996,13 @@ void grib_f_write_on_fail_(int* gid) {
|
||||||
grib_f_write_on_fail(gid);
|
grib_f_write_on_fail(gid);
|
||||||
}
|
}
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
int grib_f_multi_support_on_()
|
int grib_f_multi_support_on_(void)
|
||||||
{
|
{
|
||||||
grib_multi_support_on(0);
|
grib_multi_support_on(0);
|
||||||
return GRIB_SUCCESS;
|
return GRIB_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
int grib_f_multi_support_off_()
|
int grib_f_multi_support_off_(void)
|
||||||
{
|
{
|
||||||
grib_multi_support_off(0);
|
grib_multi_support_off(0);
|
||||||
return GRIB_SUCCESS;
|
return GRIB_SUCCESS;
|
||||||
|
@ -1181,13 +1181,13 @@ int grib_f_keys_iterator_delete_(int* iterid)
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
int grib_f_gribex_mode_on_()
|
int grib_f_gribex_mode_on_(void)
|
||||||
{
|
{
|
||||||
grib_gribex_mode_on(0);
|
grib_gribex_mode_on(0);
|
||||||
return GRIB_SUCCESS;
|
return GRIB_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
int grib_f_gribex_mode_off_()
|
int grib_f_gribex_mode_off_(void)
|
||||||
{
|
{
|
||||||
grib_gribex_mode_off(0);
|
grib_gribex_mode_off(0);
|
||||||
return GRIB_SUCCESS;
|
return GRIB_SUCCESS;
|
||||||
|
@ -2877,13 +2877,13 @@ int grib_f_multi_append_(int* ingid, int* sec,int* mgid)
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
int codes_f_bufr_multi_element_constant_arrays_on_()
|
int codes_f_bufr_multi_element_constant_arrays_on_(void)
|
||||||
{
|
{
|
||||||
codes_bufr_multi_element_constant_arrays_on(NULL);
|
codes_bufr_multi_element_constant_arrays_on(NULL);
|
||||||
return GRIB_SUCCESS;
|
return GRIB_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
int codes_f_bufr_multi_element_constant_arrays_off_()
|
int codes_f_bufr_multi_element_constant_arrays_off_(void)
|
||||||
{
|
{
|
||||||
codes_bufr_multi_element_constant_arrays_off(NULL);
|
codes_bufr_multi_element_constant_arrays_off(NULL);
|
||||||
return GRIB_SUCCESS;
|
return GRIB_SUCCESS;
|
||||||
|
|
Loading…
Reference in New Issue