New Ghostscript/GhostPDL compiler warnings - 2018-08-18-03:00:15 - 6b1106c232bb18366c527f9da54715ac79165317
[email protected] Sat, 18 Aug 2018 04:22:54 -0700 (PDT)
| Newsgroups | gmane.comp.printing.ghostscript.regression |
|---|---|
| Message-ID | <20180818112254.29674204026A@i7> |
Previous Revision: c265ee6563a1a65d225c4255d95d7306a21c3146 Current Revision: 6b1106c232bb18366c527f9da54715ac79165317 commit 6b1106c232bb18366c527f9da54715ac79165317 Author: Ken Sharp <[email protected]> AuthorDate: Sat Aug 18 10:44:52 2018 +0100 CommitDate: Sat Aug 18 10:44:52 2018 +0100 Fix display device (some more) with subclassing Because the display device isn't based off one of the standard devices we need to do extra work with it to ensure it behaves well with the subclassing device code. Commit 1203adc8bbcb60f0e4145300aac44f1988b7c2de contained some of this work, but unfortunately it had an oversight, it didn't update the parent (subclassing) devices when the device parameters changed. This led to it using the wrong width for the raster, if the media size changed after initialisation. devices/gdevdsp.c Ghostscript: new gcc warnings (gcc (Ubuntu 5.4.0-6ubuntu1~16.04.10) 5.4.0 20160609): ./devices/gdevdsp.c:1061:13: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types] http://miles.ghostscript.com:8080/artifex/6b1106c232bb18366c527f9da54715ac79165317/gs-gcc-warnings.txt new clang warnings (clang version 3.8.0-2ubuntu4 (tags/RELEASE_380/final)): ./devices/gdevdsp.c:1061:13: warning: incompatible pointer types assigning to 'gx_device *' (aka 'struct gx_device_s *') from 'gx_device_display *' (aka 'struct gx_device_display_s *') [-Wincompatible-pointer-types] dev = ddev; ^ ~~~~ http://miles.ghostscript.com:8080/artifex/6b1106c232bb18366c527f9da54715ac79165317/gs-clang-warnings.txt new scan-build warnings: ./devices/gdevdsp.c:1061:13: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types] dev = ddev; ^ http://miles.ghostscript.com:8080/artifex/6b1106c232bb18366c527f9da54715ac79165317/gs/index.html http://miles.ghostscript.com:8080/artifex/6b1106c232bb18366c527f9da54715ac79165317/gs-scan-build.txt GhostPCL: new gcc warnings (gcc (Ubuntu 5.4.0-6ubuntu1~16.04.10) 5.4.0 20160609): ./devices/gdevdsp.c:1061:13: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types] http://miles.ghostscript.com:8080/artifex/6b1106c232bb18366c527f9da54715ac79165317/pcl-gcc-warnings.txt new scan-build warnings: ./devices/gdevdsp.c:1061:13: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types] dev = ddev; ^ http://miles.ghostscript.com:8080/artifex/6b1106c232bb18366c527f9da54715ac79165317/pcl/index.html http://miles.ghostscript.com:8080/artifex/6b1106c232bb18366c527f9da54715ac79165317/pcl-scan-build.txt