[gs-cvs] rev 9109 - trunk/gs/base
giles at ghostscript.com
giles at ghostscript.com
Fri Sep 19 14:45:06 PDT 2008
Author: giles
Date: 2008-09-19 14:45:06 -0700 (Fri, 19 Sep 2008)
New Revision: 9109
Modified:
trunk/gs/base/gdev8510.c
Log:
Fix a gcc warning. Bug 690054.
Details:
The gs_note_error() macro can't be called like a normal function. In
non-debug builds it reduces to its argument, generating an empty
statement. Placing it after a return or on the right hand side of an
assignment prevents this warning.
Modified: trunk/gs/base/gdev8510.c
===================================================================
--- trunk/gs/base/gdev8510.c 2008-09-19 16:22:32 UTC (rev 9108)
+++ trunk/gs/base/gdev8510.c 2008-09-19 21:45:06 UTC (rev 9109)
@@ -51,8 +51,7 @@
int i;
if (in1 == 0 || in2 == 0 || out == 0) {
- code = gs_error_VMerror;
- gs_note_error(code);
+ code = gs_note_error(gs_error_VMerror);
goto out;
}
More information about the gs-cvs
mailing list