summaryrefslogtreecommitdiffstats
path: root/backend_mitsu9550.c
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2019-09-12 09:10:15 -0400
committerSolomon Peachy <pizza@shaftnet.org>2019-09-12 09:11:01 -0400
commit1824b24d64062469e577b34ab5ad30ae619e5396 (patch)
treeda428e3fab54b7eb7e97ce1e2ecea8b9963615fe /backend_mitsu9550.c
parent449930939f7c7bba8531a8c712f4fc4edd4bd48a (diff)
downloadselphy_print-1824b24d64062469e577b34ab5ad30ae619e5396.tar.gz
selphy_print-1824b24d64062469e577b34ab5ad30ae619e5396.tar.bz2
selphy_print-1824b24d64062469e577b34ab5ad30ae619e5396.zip
mitsu9xxx: Further refine the GCC warning suppression
(So it doesn't trigger a new warning on GCC < 9...)
Diffstat (limited to 'backend_mitsu9550.c')
-rw-r--r--backend_mitsu9550.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/backend_mitsu9550.c b/backend_mitsu9550.c
index 1809a12..6b444d3 100644
--- a/backend_mitsu9550.c
+++ b/backend_mitsu9550.c
@@ -1196,7 +1196,9 @@ static int mitsu9550_main_loop(void *vctx, const void *vjob) {
DEBUG("Applying 8bpp->12bpp Gamma Correction\n");
#pragma GCC diagnostic push
+#if (defined(__GNUC__) && (__GNUC__ >= 9))
#pragma GCC diagnostic ignored "-Waddress-of-packed-member"
+#endif
/* For B/Y plane */
memcpy(newbuf + newlen, job->databuf, sizeof(struct mitsu9550_plane));
newbuf[newlen + 3] = 0x10; /* ie 16bpp data */