summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2014-03-22 13:51:44 +0000
committerJohan B. C. Engelen <j.b.c.engelen@alumnus.utwente.nl>2014-03-22 13:51:44 +0000
commit4bc006ff078c6c1d91fa86d472a97e78c8261a0c (patch)
tree8fd3275320e0ce1f6f3cd814b6ab46d7a5cbe866 /src
parentlibcroco: don't write double parenthesis unnecessarily (interferes with the v... (diff)
downloadinkscape-4bc006ff078c6c1d91fa86d472a97e78c8261a0c.tar.gz
inkscape-4bc006ff078c6c1d91fa86d472a97e78c8261a0c.zip
libuemf: more self-assignment -> unused changes
(bzr r13185)
Diffstat (limited to 'src')
-rw-r--r--src/libuemf/uwmf_endian.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/libuemf/uwmf_endian.c b/src/libuemf/uwmf_endian.c
index 6caa24d8f..5fbb450dc 100644
--- a/src/libuemf/uwmf_endian.c
+++ b/src/libuemf/uwmf_endian.c
@@ -24,6 +24,8 @@ extern "C" {
#include "uwmf.h"
#include "uwmf_endian.h"
+#define UNUSED(x) (void)(x)
+
// hide almost everything in this file from Doxygen
//! \cond
/* Prototypes for functions used here and defined in uemf_endian.c, but which are not supposed
@@ -282,7 +284,7 @@ by end user code and to further that end prototypes are NOT provided and they ar
/* Size16 EVERY record type should call this, directly or indirectly*/
void U_WMRCORE_SIZE16_swap(char *record, int torev){
- torev = torev; // shuts up compiler warnings about unused parameters
+ UNUSED(torev);
U_swap4(record, 1); /* Size16_4 is at offset 0 in U_METARECORD */
}
@@ -307,7 +309,7 @@ void U_WMRCORE_U16_N16_swap(char *record, int torev){
/* all records that specify palette objects */
void U_WMRCORE_PALETTE_swap(char *record, int torev){
- torev = torev; // shuts up compiler warnings about unused parameters
+ UNUSED(torev);
U_WMRCORE_SIZE16_swap(record, torev);
palette_swap(record + offsetof(U_WMRANIMATEPALETTE,Palette));
}
@@ -700,7 +702,7 @@ void U_WMRDIBCREATEPATTERNBRUSH_swap(char *record, int torev){
}
void U_WMRSTRETCHDIB_swap(char *record, int torev){
- torev = torev;
+ UNUSED(torev);
U_WMRCORE_U32_N16_swap(record,9,torev);
dibheader_swap(record + offsetof(U_WMRSTRETCHDIB,dib), torev);
}