summaryrefslogtreecommitdiffstats
path: root/src/H5private.h
diff options
context:
space:
mode:
authorSean McBride <sean@rogue-research.com>2021-02-25 18:15:02 (GMT)
committerGitHub <noreply@github.com>2021-02-25 18:15:02 (GMT)
commitc29e1b9fdfcba9ca276600b1bad4ec2cf17bb01e (patch)
tree59c16ade26ea62e2ffc89506e1a245b4f296b82e /src/H5private.h
parentc17b4b93d680340af2b3f2c026f2c03c3baeb33a (diff)
downloadhdf5-c29e1b9fdfcba9ca276600b1bad4ec2cf17bb01e.zip
hdf5-c29e1b9fdfcba9ca276600b1bad4ec2cf17bb01e.tar.gz
hdf5-c29e1b9fdfcba9ca276600b1bad4ec2cf17bb01e.tar.bz2
Patches from vtk (#358)
* Drop the export attribute on forward declaration They don't mean anything on forward declarations anyways. * Fixed -Wunused-parameter warnings in some C++ files Allowed all the attribute #defines to work in C++ also. * Fixed -Wunused-variable warnings by removing dead code * Fixed all -Wshorten-64-to-32 warnings by adjusting casts There was no truncation in fact, since the unsigned result was upcast to size_t then implicitly downcast to uint32_t. * Fixed all -Wcomma warnings by spliting statements onto own lines * Fixed all -Wself-assign warnings with different unused param suppression * Fixed all -Wextra-semi warnings * Fixed all -Wswitch-enum warnings Just added new explicit cases with the existing default case. * Fixed all -Wmissing-prototypes warnings Just made functions static. Moved them into an extern "C" block. * Reformatted source with bin/format_source using clang version 10.0.1 Co-authored-by: Larry Knox <lrknox@hdfgroup.org>
Diffstat (limited to 'src/H5private.h')
-rw-r--r--src/H5private.h14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/H5private.h b/src/H5private.h
index e850523..741214f 100644
--- a/src/H5private.h
+++ b/src/H5private.h
@@ -306,19 +306,6 @@
* gcc warnings (it has to use the public API and can't include this
* file). Be sure to update that file if the #ifdefs change here.
*/
-#ifdef __cplusplus
-#define H5_ATTR_FORMAT(X, Y, Z) /*void*/
-#define H5_ATTR_UNUSED /*void*/
-#define H5_ATTR_DEPRECATED_USED /*void*/
-#define H5_ATTR_NDEBUG_UNUSED /*void*/
-#define H5_ATTR_DEBUG_API_USED /*void*/
-#define H5_ATTR_PARALLEL_UNUSED /*void*/
-#define H5_ATTR_PARALLEL_USED /*void*/
-#define H5_ATTR_NORETURN /*void*/
-#define H5_ATTR_CONST /*void*/
-#define H5_ATTR_PURE /*void*/
-#define H5_ATTR_FALLTHROUGH /*void*/
-#else /* __cplusplus */
#if defined(H5_HAVE_ATTRIBUTE) && !defined(__SUNPRO_C)
#define H5_ATTR_FORMAT(X, Y, Z) __attribute__((format(X, Y, Z)))
#define H5_ATTR_UNUSED __attribute__((unused))
@@ -365,7 +352,6 @@
#define H5_ATTR_PURE /*void*/
#define H5_ATTR_FALLTHROUGH /*void*/
#endif
-#endif /* __cplusplus */
/*
* Networking headers used by the mirror VFD and related tests and utilities.