mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-27 07:30:33 +08:00
fixed more warnings
This commit is contained in:
parent
d640b625dc
commit
50408acec0
@ -14,7 +14,6 @@
|
||||
|
||||
#include "config.h"
|
||||
#include <nc_tests.h>
|
||||
#include "err_macros.h"
|
||||
#include <stdio.h>
|
||||
#include <netcdf.h>
|
||||
|
||||
@ -26,7 +25,7 @@ int
|
||||
main(int argc, char **argv)
|
||||
{
|
||||
int ncid, dimid, varid, err;
|
||||
int no_fill, fillv, buf[10];
|
||||
int fillv;
|
||||
|
||||
err = nc_create(FILE_NAME, NC_NETCDF4, &ncid); ERR_CHK;
|
||||
err = nc_def_dim(ncid, "dim", 10, &dimid); ERR_CHK;
|
||||
|
@ -7,7 +7,6 @@
|
||||
#include <config.h>
|
||||
#include <stdlib.h>
|
||||
#include <nc_tests.h>
|
||||
#include "err_macros.h"
|
||||
#include <netcdf.h>
|
||||
#include <string.h>
|
||||
|
||||
@ -280,7 +279,7 @@ static int
|
||||
test(const struct Test* tests, const char* title)
|
||||
{
|
||||
int status = NC_NOERR;
|
||||
int i,failures = 0;
|
||||
int failures = 0;
|
||||
const struct Test* p;
|
||||
|
||||
fprintf(stderr,"Testing %s...\n",title);
|
||||
@ -328,9 +327,7 @@ fail:
|
||||
int
|
||||
main(int argc, char** argv)
|
||||
{
|
||||
int i, status;
|
||||
int failures = 0;
|
||||
int tstcnt = 0;
|
||||
|
||||
printf("\n Testing UTF-8 sequences.\n");
|
||||
failures += test(utf8currency,"Currencies");
|
||||
|
Loading…
Reference in New Issue
Block a user