summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHubert Figuière <hub@figuiere.net>2014-01-27 21:58:04 -0500
committerHubert Figuière <hub@figuiere.net>2014-01-27 21:58:04 -0500
commitf8eedc2b24004674d9537f8d53f90ebb86e1c07b (patch)
tree24670d811f957e941513a2bc5971e4c61e2ac43f
parente22a2bef8465df2dc6977973caf6e2690b440201 (diff)
Proper ignore variable
-rw-r--r--source/common/XMP_LibUtils.hpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/common/XMP_LibUtils.hpp b/source/common/XMP_LibUtils.hpp
index 7697de3..266b908 100644
--- a/source/common/XMP_LibUtils.hpp
+++ b/source/common/XMP_LibUtils.hpp
@@ -40,8 +40,7 @@ typedef std::string XMP_VarString;
extern "C" bool Initialize_LibUtils();
extern "C" void Terminate_LibUtils();
-static void * ignorePtr = 0;
-#define IgnoreParam(p) ignorePtr = (void*)&p
+#define IgnoreParam(p) (void)p
// The builtin offsetof macro sometimes violates C++ data member rules.
#define XMP_OffsetOf(struct,field) ( (char*)(&((struct*)0x100)->field) - (char*)0x100 )