diff options
author | Robin Watts <robin.watts@artifex.com> | 2010-04-21 18:12:56 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2010-04-21 18:12:56 +0000 |
commit | 70d1f3086651f5c39d7c7efa4120560ea919e390 (patch) | |
tree | 2068cecd9019e9ba867d3a4ce1c8de91dfc1b57e /gs/base/gdevpdf.c | |
parent | 7b9bb3a52033d8e06ef5bc69b7f50aa3e7e8213d (diff) |
Another set of very simple tweaks to a range of source files to remove
warnings. Nothing contentious in here I hope!
base/gdevpdf.c: Make the fact we're ignoring the return value of fread
explicit by casting to void.
base/gdevsj48.c: Remove unused var.
base/gdevtknk.c: Avoid gcc warning by not needlessly assigning within
expression.
base/gdevimgn.c: Fix type declaration, make function static.
base/gxdcolor.c: Remove unused var.
base/gdevwts.c: Comment out unused function, cast unused return value from
fread to void, remove unused vars.
base/gdevo182.c: Be more explicit in type definition to stop warning.
base/gdevlp8k.c: Remove unused var.
base/gdevpdfu.c: Cast unused return value from fread to void.
base/gdevlbp8.c: Cast unused return value from fread to void.
base/gdevokii.c: Explicit cast to int to shut up stupid compiler.
base/gdevpdtd.c: Add const to arg to avoid warning.
base/gserror.h: Do some macro magic to ensure that the macro always evaluates
it's arg strictly once, insists on being followed by a semicolon, and behaves
well with surrounding if/else structures etc.
base/gxp1fill.c: Remove unused var.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@11097 a1074d23-0009-0410-80fe-cf8c14f379e6
Diffstat (limited to 'gs/base/gdevpdf.c')
-rw-r--r-- | gs/base/gdevpdf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gs/base/gdevpdf.c b/gs/base/gdevpdf.c index 6b9319959..cb1f61c32 100644 --- a/gs/base/gdevpdf.c +++ b/gs/base/gdevpdf.c @@ -1328,7 +1328,7 @@ pdf_close(gx_device * dev) ulong pos; char str[21]; - fread(&pos, sizeof(pos), 1, tfile); + (void)fread(&pos, sizeof(pos), 1, tfile); if (pos & ASIDES_BASE_POSITION) pos += resource_pos - ASIDES_BASE_POSITION; pos -= pdev->OPDFRead_procset_length; |