From 52f78a12d5874bafcc9c1ed13891331a1c55c14b Mon Sep 17 00:00:00 2001 From: Binh-Minh Ribler Date: Sun, 24 Jul 2005 22:40:21 -0500 Subject: [svn-r11152] Purpose: Removed some compiler warnings Description: Removed defined but unused variables. Platforms tested: Linux 2.4 (heping) IRIX64 with -n32 (modi4) Linux 2.4 w/PGI (colonelk) --- c++/test/tattr.cpp | 5 +---- c++/test/th5s.cpp | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/c++/test/tattr.cpp b/c++/test/tattr.cpp index 315abeb..ae1d986 100644 --- a/c++/test/tattr.cpp +++ b/c++/test/tattr.cpp @@ -37,7 +37,6 @@ using namespace H5; #include "h5cpputil.h" // C++ utilility header file const string FILENAME("tattr.h5"); -const size_t ATTR_NAME_LEN = 16; const size_t ATTR_MAX_DIMS = 7; const string ATTR_TMP_NAME("temp_name"); @@ -556,9 +555,7 @@ test_attr_compound_read(void) static void test_attr_scalar_write(void) { - hsize_t dims1[] = {SPACE1_DIM1, SPACE1_DIM2, SPACE1_DIM3}; - - // Output message about test being performed + // Output message about test being performed MESSAGE(5, ("Testing Basic Scalar Attribute Writing Functions\n")); try { diff --git a/c++/test/th5s.cpp b/c++/test/th5s.cpp index 5c53963..a1b0b46 100644 --- a/c++/test/th5s.cpp +++ b/c++/test/th5s.cpp @@ -65,7 +65,6 @@ unsigned space3_data=65; /* Scalar dataset with compound datatype */ const string SPACE4_NAME("Scalar2"); -const int SPACE4_RANK = 0; const string SPACE4_FIELDNAME1("c1"); const string SPACE4_FIELDNAME2("u"); const string SPACE4_FIELDNAME3("f"); @@ -137,6 +136,7 @@ test_h5s_basic(void) int ndims; // Number of dimensions hsize_t tdims[4]; // Dimension array to test with ndims = sid1.getSimpleExtentDims( tdims ); + verify_val(ndims, SPACE1_RANK, "DataSpace::getSimpleExtentDims", __LINE__, __FILE__); verify_val(HDmemcmp(tdims, dims1, SPACE1_RANK * sizeof(unsigned)), 0, "DataSpace::getSimpleExtentDims", __LINE__, __FILE__); -- cgit v0.12