New Ghostscript/GhostPDL compiler warnings - 2018-10-29-10:30:05 - a359d37fa7c1ba7e3910b83e8672ac9a4b110518

[email protected] Mon, 29 Oct 2018 13:15:57 -0700 (PDT)
Newsgroups gmane.comp.printing.ghostscript.regression
Message-ID <20181029201557.C83D42040463@i7>
Previous Revision: 17262b11330552fb393bbd2907a9672d0d7eee48
 Current Revision: a359d37fa7c1ba7e3910b83e8672ac9a4b110518

commit a359d37fa7c1ba7e3910b83e8672ac9a4b110518
Author:     Robin Watts <[email protected]>
AuthorDate: Mon Oct 29 16:17:50 2018 +0000
CommitDate: Mon Oct 29 16:50:21 2018 +0000

    Add gs_font_dir_free.
    
    This extracts some code from pdfwrite and makes it available to
    other callers.

base/gsfont.c
base/gsfont.h
devices/vector/gdevpdf.c
pcl/pcl/pcfont.c
pcl/pxl/pxstate.c



Ghostscript:

new cppcheck warnings (Cppcheck 1.72): 

base/gsfont.c:370: error: Shifting a negative value is undefined behaviour
base/gsfont.c:900: error: Shifting a negative value is undefined behaviour
base/gsfont.c:904: error: Shifting a negative value is undefined behaviour

http://miles.ghostscript.com:8080/artifex/a359d37fa7c1ba7e3910b83e8672ac9a4b110518/gs-cppcheck.txt




GhostPCL:

new gcc warnings (gcc (Ubuntu 5.4.0-6ubuntu1~16.04.10) 5.4.0 20160609): 

./pcl/pcl/pcfont.c:680:1: warning: 'purge_all' defined but not used [-Wunused-function]

http://miles.ghostscript.com:8080/artifex/a359d37fa7c1ba7e3910b83e8672ac9a4b110518/pcl-gcc-warnings.txt



new scan-build warnings:

./pcl/pcl/pcfont.c:680:1: warning: 'purge_all' defined but not used [-Wunused-function]
 purge_all(const gs_memory_t * mem, cached_char * cc, void *dummy)
 ^


http://miles.ghostscript.com:8080/artifex/a359d37fa7c1ba7e3910b83e8672ac9a4b110518/pcl/index.html

http://miles.ghostscript.com:8080/artifex/a359d37fa7c1ba7e3910b83e8672ac9a4b110518/pcl-scan-build.txt