summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2014-03-22 12:11:05 +0000
committerJohan B. C. Engelen <j.b.c.engelen@alumnus.utwente.nl>2014-03-22 12:11:05 +0000
commit3e250052040d27cfab48f06e72a0a420928823d3 (patch)
tree7b18ecf782ee6be0c8b31badfdcb4f0314c8a163 /src
parentlibuemf: make uemf_utf.c compile cleanly with specific version of iconv. (cur... (diff)
downloadinkscape-3e250052040d27cfab48f06e72a0a420928823d3.tar.gz
inkscape-3e250052040d27cfab48f06e72a0a420928823d3.zip
fix self-assignment. use of UNUSED macro to better show the intent of the code
(bzr r13182)
Diffstat (limited to 'src')
-rw-r--r--src/libuemf/uemf_endian.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/libuemf/uemf_endian.c b/src/libuemf/uemf_endian.c
index f025416c3..f5dcf829a 100644
--- a/src/libuemf/uemf_endian.c
+++ b/src/libuemf/uemf_endian.c
@@ -36,6 +36,10 @@ extern "C" {
#include "uemf.h"
#include "uemf_endian.h"
+// Unfortunately, C does not allow unnamed function arguments, so use this macro instead...
+#define UNUSED(x) (void)(x)
+
+
// hide almost everuything in here from Doxygen
//! \cond
@@ -425,7 +429,8 @@ by end user code and to further that end prototypes are NOT provided and they ar
// all core*_swap call this, U_EMRSETMARGN_swap and some others all it directly
// numbered as core5 to be consistent with uemf.c, but must appear before the others as there is no prototype
void core5_swap(char *record, int torev){
- torev = torev; // shuts up compiler warnings about unused parameters
+ UNUSED(torev);
+
PU_ENHMETARECORD pEMR = (PU_ENHMETARECORD)(record);
U_swap4(pEMR,2); // iType nSize
}