summaryrefslogtreecommitdiffstats
path: root/backend_mitsu9550.c
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2019-09-10 13:30:55 -0400
committerSolomon Peachy <pizza@shaftnet.org>2019-09-10 13:31:37 -0400
commit6767335106cca0d08da5dfc3b89cd1809f45d470 (patch)
tree10fa038a64df1bb522636b5a9085c42d90f378e7 /backend_mitsu9550.c
parent70ba60549293ffa1dfcbe5d637339b7d542e36ff (diff)
downloadselphy_print-6767335106cca0d08da5dfc3b89cd1809f45d470.tar.gz
selphy_print-6767335106cca0d08da5dfc3b89cd1809f45d470.tar.bz2
selphy_print-6767335106cca0d08da5dfc3b89cd1809f45d470.zip
mitsu98xx: Silence a false-positive GCC warning.
Diffstat (limited to 'backend_mitsu9550.c')
-rw-r--r--backend_mitsu9550.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/backend_mitsu9550.c b/backend_mitsu9550.c
index b1aaf49..1809a12 100644
--- a/backend_mitsu9550.c
+++ b/backend_mitsu9550.c
@@ -1195,6 +1195,8 @@ static int mitsu9550_main_loop(void *vctx, const void *vjob) {
}
DEBUG("Applying 8bpp->12bpp Gamma Correction\n");
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Waddress-of-packed-member"
/* For B/Y plane */
memcpy(newbuf + newlen, job->databuf, sizeof(struct mitsu9550_plane));
newbuf[newlen + 3] = 0x10; /* ie 16bpp data */
@@ -1227,6 +1229,7 @@ static int mitsu9550_main_loop(void *vctx, const void *vjob) {
table->GNMrc,
planelen / 2);
newlen += planelen;
+#pragma GCC diagnostic pop
/* And finally, the job footer. */
memcpy(newbuf + newlen, job->databuf + sizeof(struct mitsu9550_plane) + planelen/2 * 3, sizeof(struct mitsu9550_cmd));
@@ -1709,7 +1712,7 @@ static const char *mitsu9550_prefixes[] = {
/* Exported */
struct dyesub_backend mitsu9550_backend = {
.name = "Mitsubishi CP9xxx family",
- .version = "0.47",
+ .version = "0.48",
.uri_prefixes = mitsu9550_prefixes,
.cmdline_usage = mitsu9550_cmdline,
.cmdline_arg = mitsu9550_cmdline_arg,