]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Bypass another bogus compiler warning.
authormsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>
Tue, 9 Dec 2014 21:23:49 +0000 (21:23 +0000)
committermsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>
Tue, 9 Dec 2014 21:23:49 +0000 (21:23 +0000)
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@12337 a1ca3aef-8c08-0410-bb20-df032aa958be

filter/raster.c

index f6eb3d40600f78122c4ea697b5e17af9a06ec3f5..0e7fb0c439920c0e0714c9bab698e4b9a8ee5a23 100644 (file)
@@ -603,8 +603,8 @@ cupsRasterWriteHeader(
     fh.cupsInteger[15]       = htonl(r->header.cupsInteger[15]);
                                        /* VendorLength */
 
-    memcpy(fh.cupsReal, r->header.cupsReal,
-           sizeof(fh.cupsReal) + sizeof(fh.cupsString));
+    void *p = fh.cupsReal; /* Bypass bogus compiler warning */
+    memcpy(p, r->header.cupsReal, sizeof(fh.cupsReal) + sizeof(fh.cupsString));
                                        /* VendorData */
 
     strlcpy(fh.cupsRenderingIntent, r->header.cupsRenderingIntent,