gromacs cpp: clean up -Wunused-parameter warnings
[alexxy/gromacs.git] / src / gromacs / utility / common.h
index 45b644434490448d258c76f30b488b33e414049e..f54654681d16f24aa4d0c0e95ea951011b55fd80 100644 (file)
@@ -102,6 +102,12 @@ void inline ignoreValueHelper(const T &)
  */
 #define GMX_IGNORE_RETURN_VALUE(call) \
         ::gmx::internal::ignoreValueHelper(call)
+/*! \brief
+ * Macro to explicitly ignore an unused value.
+ *
+ * \ingroup module_utility
+ */
+#define GMX_UNUSED_VALUE(value) (void)value
 
 /*! \brief
  * Helper class to manage a pointer to a private implementation class.