fixed more warnings

This commit is contained in:
Ed Hartnett 2017-10-25 06:22:58 -06:00
parent d640b625dc
commit 50408acec0
2 changed files with 2 additions and 6 deletions

View File

@ -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;

View File

@ -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");