mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-01-18 15:55:12 +08:00
Auto fixed clang-tidy readability-redundant-declaration warnings
This commit is contained in:
parent
c92381721e
commit
029389efcb
@ -12,7 +12,6 @@
|
|||||||
static void completesegments(NClist* fullpath, NClist* segments);
|
static void completesegments(NClist* fullpath, NClist* segments);
|
||||||
static NCerror qualifyprojectionnames(DCEprojection* proj);
|
static NCerror qualifyprojectionnames(DCEprojection* proj);
|
||||||
static NCerror qualifyprojectionsizes(DCEprojection* proj);
|
static NCerror qualifyprojectionsizes(DCEprojection* proj);
|
||||||
static NCerror qualifyprojectionnames(DCEprojection* proj);
|
|
||||||
static NCerror matchpartialname(NClist* nodes, NClist* segments, CDFnode** nodep);
|
static NCerror matchpartialname(NClist* nodes, NClist* segments, CDFnode** nodep);
|
||||||
static int matchsuffix(NClist* matchpath, NClist* segments);
|
static int matchsuffix(NClist* matchpath, NClist* segments);
|
||||||
static int iscontainer(CDFnode* node);
|
static int iscontainer(CDFnode* node);
|
||||||
|
@ -15,8 +15,6 @@
|
|||||||
#include <io.h>
|
#include <io.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
extern int mkstemp(char *template);
|
|
||||||
|
|
||||||
#define LBRACKET '['
|
#define LBRACKET '['
|
||||||
#define RBRACKET ']'
|
#define RBRACKET ']'
|
||||||
|
|
||||||
|
@ -45,8 +45,6 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
extern int NC_initialized; /**< True when dispatch table is initialized. */
|
|
||||||
|
|
||||||
/* User-defined formats. */
|
/* User-defined formats. */
|
||||||
NC_Dispatch *UDF0_dispatch_table = NULL;
|
NC_Dispatch *UDF0_dispatch_table = NULL;
|
||||||
char UDF0_magic_number[NC_MAX_MAGIC_NUMBER_LEN + 1] = "";
|
char UDF0_magic_number[NC_MAX_MAGIC_NUMBER_LEN + 1] = "";
|
||||||
|
@ -244,9 +244,6 @@ CdAddDelTime(double begEtm, long nDel, CdDeltaTime delTime, CdTimeType timeType,
|
|||||||
long delMonths, delYears;
|
long delMonths, delYears;
|
||||||
CdTime bhtime, ehtime;
|
CdTime bhtime, ehtime;
|
||||||
|
|
||||||
extern void Cde2h(double etime, CdTimeType timeType, long baseYear, CdTime *htime);
|
|
||||||
extern void Cdh2e(CdTime *htime, double *etime);
|
|
||||||
|
|
||||||
switch(delTime.units){
|
switch(delTime.units){
|
||||||
case CdYear:
|
case CdYear:
|
||||||
delMonths = 12;
|
delMonths = 12;
|
||||||
@ -466,8 +463,6 @@ CdDivDelTime(double begEtm, double endEtm, CdDeltaTime delTime, CdTimeType timeT
|
|||||||
CdTime bhtime, ehtime;
|
CdTime bhtime, ehtime;
|
||||||
int hoursInYear;
|
int hoursInYear;
|
||||||
|
|
||||||
extern void Cde2h(double etime, CdTimeType timeType, long baseYear, CdTime *htime);
|
|
||||||
|
|
||||||
switch(delTime.units){
|
switch(delTime.units){
|
||||||
case CdYear:
|
case CdYear:
|
||||||
delMonths = 12;
|
delMonths = 12;
|
||||||
|
@ -11,13 +11,8 @@
|
|||||||
|
|
||||||
#include "ncdispatch.h"
|
#include "ncdispatch.h"
|
||||||
|
|
||||||
extern int NC3_initialize(void);
|
|
||||||
extern int NC3_finalize(void);
|
|
||||||
|
|
||||||
#ifdef USE_NETCDF4
|
#ifdef USE_NETCDF4
|
||||||
#include "nc4internal.h"
|
#include "nc4internal.h"
|
||||||
extern int NC4_initialize(void);
|
|
||||||
extern int NC4_finalize(void);
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef USE_HDF5
|
#ifdef USE_HDF5
|
||||||
@ -31,11 +26,6 @@ extern int NCD2_initialize(void);
|
|||||||
extern int NCD2_finalize(void);
|
extern int NCD2_finalize(void);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef ENABLE_DAP4
|
|
||||||
extern int NCD4_initialize(void);
|
|
||||||
extern int NCD4_finalize(void);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef USE_PNETCDF
|
#ifdef USE_PNETCDF
|
||||||
extern int NCP_initialize(void);
|
extern int NCP_initialize(void);
|
||||||
extern int NCP_finalize(void);
|
extern int NCP_finalize(void);
|
||||||
|
@ -25,13 +25,6 @@ extern NC_Dispatch UDF0_DISPATCH;
|
|||||||
extern NC_Dispatch UDF1_DISPATCH;
|
extern NC_Dispatch UDF1_DISPATCH;
|
||||||
#endif /* USE_UDF1 */
|
#endif /* USE_UDF1 */
|
||||||
|
|
||||||
#ifdef USE_NETCDF4
|
|
||||||
/* Pointers to dispatch tables for user-defined formats. */
|
|
||||||
extern NC_Dispatch *UDF0_dispatch_table;
|
|
||||||
extern NC_Dispatch *UDF1_dispatch_table;
|
|
||||||
#endif /* USE_NETCDF4 */
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @internal Initialize netCDF-4. If user-defined format(s) have been
|
* @internal Initialize netCDF-4. If user-defined format(s) have been
|
||||||
|
@ -7,8 +7,6 @@ See COPYRIGHT for license information.
|
|||||||
|
|
||||||
#define TRACE
|
#define TRACE
|
||||||
|
|
||||||
extern char* ncclassname(nc_class);
|
|
||||||
|
|
||||||
#ifdef TRACE
|
#ifdef TRACE
|
||||||
#define T(fcn,mem) {if(trace) {fprintf(stderr,"X: %s: %p\n", fcn,mem);}}
|
#define T(fcn,mem) {if(trace) {fprintf(stderr,"X: %s: %p\n", fcn,mem);}}
|
||||||
#else
|
#else
|
||||||
|
@ -18,7 +18,6 @@ static List* f77procs = NULL; /* bodies of generated procedures */
|
|||||||
/* Forward */
|
/* Forward */
|
||||||
static void genf77_definevardata(Symbol* vsym);
|
static void genf77_definevardata(Symbol* vsym);
|
||||||
static void genf77_defineattr(Symbol* asym);
|
static void genf77_defineattr(Symbol* asym);
|
||||||
static void genf77_definevardata(Symbol*);
|
|
||||||
|
|
||||||
static void f77attrify(Symbol* asym, Bytebuffer* buf);
|
static void f77attrify(Symbol* asym, Bytebuffer* buf);
|
||||||
static const char* f77varncid(Symbol* vsym);
|
static const char* f77varncid(Symbol* vsym);
|
||||||
@ -26,7 +25,6 @@ static const char* f77dimncid(Symbol* vsym);
|
|||||||
|
|
||||||
static const char* nfstype(nc_type nctype);
|
static const char* nfstype(nc_type nctype);
|
||||||
static const char* nftype(nc_type type);
|
static const char* nftype(nc_type type);
|
||||||
static const char* nfstype(nc_type nctype);
|
|
||||||
static const char* ncftype(nc_type type);
|
static const char* ncftype(nc_type type);
|
||||||
static const char* nfdtype(nc_type type);
|
static const char* nfdtype(nc_type type);
|
||||||
|
|
||||||
|
@ -18,8 +18,6 @@
|
|||||||
extern List* vlenconstants; /* List<Constant*>;*/
|
extern List* vlenconstants; /* List<Constant*>;*/
|
||||||
|
|
||||||
/* Forward */
|
/* Forward */
|
||||||
static void genj_definevardata(Symbol* vsym);
|
|
||||||
|
|
||||||
static const char* jtypeallcaps(nc_type type);
|
static const char* jtypeallcaps(nc_type type);
|
||||||
static const char* jtypecap(nc_type type);
|
static const char* jtypecap(nc_type type);
|
||||||
static const char* jtype(nc_type type);
|
static const char* jtype(nc_type type);
|
||||||
|
@ -23,7 +23,6 @@ static void processtypesizes(void);
|
|||||||
static void processvars(void);
|
static void processvars(void);
|
||||||
static void processattributes(void);
|
static void processattributes(void);
|
||||||
static void processunlimiteddims(void);
|
static void processunlimiteddims(void);
|
||||||
static void processeconstrefs(void);
|
|
||||||
static void processeconstrefsR(Symbol*,Datalist*);
|
static void processeconstrefsR(Symbol*,Datalist*);
|
||||||
static void processroot(void);
|
static void processroot(void);
|
||||||
static void processvardata(void);
|
static void processvardata(void);
|
||||||
|
@ -54,7 +54,6 @@ error(fmt, va_alist)
|
|||||||
void
|
void
|
||||||
off_errs()
|
off_errs()
|
||||||
{
|
{
|
||||||
extern int ncopts; /* error options */
|
|
||||||
ncopts &= ~NC_FATAL; /* make errors nonfatal */
|
ncopts &= ~NC_FATAL; /* make errors nonfatal */
|
||||||
ncopts &= ~NC_VERBOSE; /* turn off error messages */
|
ncopts &= ~NC_VERBOSE; /* turn off error messages */
|
||||||
}
|
}
|
||||||
@ -67,7 +66,6 @@ off_errs()
|
|||||||
void
|
void
|
||||||
on_errs()
|
on_errs()
|
||||||
{
|
{
|
||||||
extern int ncopts; /* error options */
|
|
||||||
ncopts |= NC_FATAL; /* make errors fatal */
|
ncopts |= NC_FATAL; /* make errors fatal */
|
||||||
ncopts |= NC_VERBOSE; /* library prints error messages */
|
ncopts |= NC_VERBOSE; /* library prints error messages */
|
||||||
}
|
}
|
||||||
|
@ -12,7 +12,6 @@ static OCerror mergedods1(OCnode* dds, OCnode* das);
|
|||||||
static OCerror mergeother1(OCnode* root, OCnode* das);
|
static OCerror mergeother1(OCnode* root, OCnode* das);
|
||||||
static char* pathtostring(NClist* path, char* separator);
|
static char* pathtostring(NClist* path, char* separator);
|
||||||
static void computefullname(OCnode* node);
|
static void computefullname(OCnode* node);
|
||||||
static OCerror mergeother1(OCnode* root, OCnode* das);
|
|
||||||
static OCerror mergeother(OCnode* ddsroot, NClist* dasnodes);
|
static OCerror mergeother(OCnode* ddsroot, NClist* dasnodes);
|
||||||
|
|
||||||
/* Process ocnodes to fix various semantic issues*/
|
/* Process ocnodes to fix various semantic issues*/
|
||||||
|
Loading…
Reference in New Issue
Block a user