Compiler warnings: Intel

This commit is contained in:
Shahram Najm 2017-09-01 17:36:16 +01:00
parent 18640bcd47
commit 7495c14869
6 changed files with 1311 additions and 1309 deletions

View File

@ -11,7 +11,7 @@
#include "eccodes.h"
#include <assert.h>
void usage(const char* prog)
static void usage(const char* prog)
{
printf("usage: %s [-a|-d] infile\n",prog);
exit(1);

View File

@ -16,7 +16,7 @@
#include <assert.h>
#include "grib_api_internal.h"
void usage(char* prog) {
static void usage(const char* prog) {
printf("usage: %s filename\n",prog);
exit(1);
}

View File

@ -14,7 +14,7 @@
#define STR_EQUAL(s1, s2) (strcmp((s1), (s2)) == 0)
int get_packing_type_code(const char* packingType)
static int get_packing_type_code(const char* packingType)
{
int result = GRIB_UTIL_PACKING_TYPE_GRID_SIMPLE;
if (packingType==NULL)
@ -30,7 +30,7 @@ int get_packing_type_code(const char* packingType)
return result;
}
void test_reduced_gg(int remove_local_def, int edition, const char* packingType,
static void test_reduced_gg(int remove_local_def, int edition, const char* packingType,
const char* input_filename, const char* output_filename)
{
/* based on copy_spec_from_ksec */
@ -106,7 +106,7 @@ void test_reduced_gg(int remove_local_def, int edition, const char* packingType,
fclose(out);
}
void test_regular_ll(int remove_local_def, int edition, const char* packingType,
static void test_regular_ll(int remove_local_def, int edition, const char* packingType,
const char* input_filename, const char* output_filename)
{
/* based on copy_spec_from_ksec */
@ -186,7 +186,8 @@ void test_regular_ll(int remove_local_def, int edition, const char* packingType,
fclose(out);
}
void test_grid_complex_spatial_differencing(int remove_local_def, int edition, const char* packingType,
#if 0
static void test_grid_complex_spatial_differencing(int remove_local_def, int edition, const char* packingType,
const char* input_filename, const char* output_filename)
{
/* based on copy_spec_from_ksec */
@ -224,7 +225,7 @@ void test_grid_complex_spatial_differencing(int remove_local_def, int edition, c
CODES_CHECK(codes_get_double(handle, "max", &theMax),0);
CODES_CHECK(codes_get_double(handle, "min", &theMin),0);
CODES_CHECK(codes_get_double(handle, "average",&theAverage),0);
printf("inlen=%ld \t max=%g \t min=%g \t avg=%g\n", inlen, theMax, theMin, theAverage);
printf("inlen=%lu \t max=%g \t min=%g \t avg=%g\n", inlen, theMax, theMin, theAverage);
spec.grid_type = GRIB_UTIL_GRID_SPEC_REGULAR_LL;
spec.Nj = 721;
@ -272,8 +273,9 @@ void test_grid_complex_spatial_differencing(int remove_local_def, int edition, c
fclose(in);
fclose(out);
}
#endif
void usage(const char *prog)
static void usage(const char *prog)
{
fprintf(stderr, "%s: [-p packingType] [-r] [-e edition] in.grib out.grib\n", prog);
fprintf(stderr, "-p packingType: one of grid_jpeg, grid_second_order or grid_simple\n");

View File

@ -10,9 +10,6 @@
/*
* test: reading multi fields messages from memory
*
*
*
*/
#include "grib_api.h"
@ -20,7 +17,10 @@
#include <sys/stat.h>
#include <unistd.h>
void usage(char* prog) {printf("usage: %s [-m] file.grib\n",prog);exit(1);}
static void usage(const char* prog) {
printf("usage: %s [-m] file.grib\n",prog);
exit(1);
}
int main(int argc,char* argv[]) {
struct stat finfo;

View File

@ -10,7 +10,7 @@
#include "grib_api.h"
void usage(char* prog) {
static void usage(char* prog) {
printf("usage: %s infile\n",prog);
exit(1);
}

File diff suppressed because it is too large Load Diff