mitsu98xx: Silence a false-positive GCC warning.

This commit is contained in:
Solomon Peachy 2019-09-10 13:30:55 -04:00
parent 9510016387
commit a558fe065f
1 changed files with 4 additions and 1 deletions

View File

@ -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,