Commit d413a0cc authored by David Partyka's avatar David Partyka
Browse files

COMP: More warning cleanup.

parent 6a3e9cb8
......@@ -263,8 +263,8 @@ CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/ncconfig.h.in
ADD_LIBRARY(vtkNetCDF
${netcdf_SRCS})
ADD_LIBRARY(vtkNetCDF_cpp ${netcdfcxx_SRCS})
TARGET_LINK_LIBRARIES(vtkNetCDF_cpp vtkNetCDF)
ADD_LIBRARY(vtkNetCDF_cxx ${netcdfcxx_SRCS})
TARGET_LINK_LIBRARIES(vtkNetCDF_cxx vtkNetCDF)
# Take care of symbol export/import on Windows
ADD_DEFINITIONS("-DNC_DLL_EXPORT")
......
......@@ -101,7 +101,7 @@ find_NC_Udim(const NC_dimarray *ncap, NC_dim **dimpp)
return -1;
{
int dimid = 0;
size_t dimid = 0;
NC_dim **loc = ncap->value;
for(; (size_t) dimid < ncap->nelems
......@@ -130,7 +130,7 @@ static int
NC_finddim(const NC_dimarray *ncap, const char *uname, NC_dim **dimpp)
{
int dimid;
size_t dimid;
size_t slen;
NC_dim ** loc;
char *name;
......
......@@ -14,7 +14,10 @@
#include "ncvalues.h"
// pragma GCC diagnostic is available since gcc>=4.2
#if defined(__GNUG__) && (__GNUC__>4) || (__GNUC__==4 && __GNUC_MINOR__>=2)
#pragma GCC diagnostic ignored "-Wtype-limits"
#endif
NcValues::NcValues( void ) : the_type(ncNoType), the_number(0)
{}
......
......@@ -11515,7 +11515,7 @@ RENAME(get_varm )(
cvtmap = (ptrdiff_t *)calloc(varndims, sizeof(ptrdiff_t));
if(cvtmap == NULL)
return NC_ENOMEM;
for(ii = 0; ii < varndims; ii++)
for(ii = 0; ii < (size_t) varndims; ii++)
{
if(imapp[ii] % szof != 0)
{
......@@ -11612,7 +11612,7 @@ nc_put_varm (
cvtmap = (ptrdiff_t *)calloc(varndims, sizeof(ptrdiff_t));
if(cvtmap == NULL)
return NC_ENOMEM;
for(ii = 0; ii < varndims; ii++)
for(ii = 0; ii < (size_t) varndims; ii++)
{
if(imapp[ii] % szof != 0)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment