From c2750822ffd92d78e9c442e8ab046ac2dbf47d8e Mon Sep 17 00:00:00 2001 From: Albert Cheng Date: Wed, 26 Jun 2013 01:25:44 -0500 Subject: [svn-r23825] Bug HDFFV-8469: C++ comments in C code. Found and removed two more "//" comments. Tested: in Koala by $ env CFLAGS="-ansi" ../hdf5/bin/buildhdf5 -fortran -cxx -config # enable fortran and cxx, configure only $ make AM_CFLAGS=-ansi # compile all source file by setting HDF5 build CFLAGS as "-ansi" only --- tools/h5dump/h5dump_ddl.c | 2 -- tools/lib/h5tools_dump.c | 1 - 2 files changed, 3 deletions(-) diff --git a/tools/h5dump/h5dump_ddl.c b/tools/h5dump/h5dump_ddl.c index c4a9ecb..10d4d32 100644 --- a/tools/h5dump/h5dump_ddl.c +++ b/tools/h5dump/h5dump_ddl.c @@ -1360,8 +1360,6 @@ handle_attributes(hid_t fid, const char *attr, void UNUSED * data, int UNUSED pe string_dataformat.do_escape = display_escape; outputformat = &string_dataformat; - //attr_name = attr + j + 1; - // need to replace escape characters attr_name = h5tools_str_replace(attr + j + 1, "\\/", "/"); diff --git a/tools/lib/h5tools_dump.c b/tools/lib/h5tools_dump.c index e4fe3a4..cde249c 100644 --- a/tools/lib/h5tools_dump.c +++ b/tools/lib/h5tools_dump.c @@ -637,7 +637,6 @@ h5tools_dump_region_data_blocks(hid_t region_space, hid_t region_id, { HERROR(H5E_tools_g, H5E_tools_min_id_g, "Could not allocate buffer for ptdata"); HGOTO_DONE(dimension_break); - //HGOTO_ERROR(dimension_break, H5E_tools_min_id_g, "Could not allocate buffer for ptdata"); } if(H5Sget_select_hyper_blocklist(region_space, (hsize_t)0, nblocks, ptdata) < 0) -- cgit v0.12