New Ghostscript/GhostPDL compiler warnings - 2017-11-16-02:30:03 - dd820bbe7f53e051add94dbcdc779dae1820e0d6

[email protected]
Newsgroups gmane.comp.printing.ghostscript.regression
Message-ID <20171116123104.40A7D20401AB@i7>
Previous Revision: c9951359bde5c4e72a20624788a47a97872db090
 Current Revision: dd820bbe7f53e051add94dbcdc779dae1820e0d6

commit dd820bbe7f53e051add94dbcdc779dae1820e0d6
Author:     Ken Sharp <[email protected]>
AuthorDate: Wed Nov 15 16:49:41 2017 +0000
CommitDate: Thu Nov 16 08:26:44 2017 +0000

    Device method repair - use accessors throughout
    
    A lot of places accessed device methods directly, instead of using the
    accessor macros. Update all the code to use the accessors.

base/gdevdflt.c
base/gdevmpla.c
base/gdevnfwd.c
base/gdevp14.c
base/gdevprn.c
base/gdevsclass.c
base/gdevvec.c
base/gsdevice.c
base/gsdparam.c
base/gsicc_manage.c
base/gxclist.c
base/gxclrect.c
base/gxcmap.c
base/gxdevice.h
base/gxfapi.c
base/gxfill.c
base/gxp1fill.c
base/gxpcmap.c
devices/gdevdsp.c
devices/gdevplib.c
devices/gdevtifs.c
devices/gdevtsep.c
devices/gdevwpr2.c



Ghostscript:

new scan-build warnings:

./base/gdevdflt.c:1582:21: warning: Dereference of null pointer
                    set_dev_proc(p14dev->target->child, encode_color, p14dev->saved_target_encode_color);
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

./base/gsdevice.c:360:9: warning: Value stored to 'procs' is never read
        procs = &dev->procs;
        ^       ~~~~~~~~~~~


http://miles.ghostscript.com:8080/artifex/dd820bbe7f53e051add94dbcdc779dae1820e0d6/gs/index.html

http://miles.ghostscript.com:8080/artifex/dd820bbe7f53e051add94dbcdc779dae1820e0d6/gs-scan-build.txt




GhostPCL:

new scan-build warnings:

./base/gdevdflt.c:1582:21: warning: Dereference of null pointer
                    set_dev_proc(p14dev->target->child, encode_color, p14dev->saved_target_encode_color);
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

./base/gsdevice.c:360:9: warning: Value stored to 'procs' is never read
        procs = &dev->procs;
        ^       ~~~~~~~~~~~


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

http://miles.ghostscript.com:8080/artifex/dd820bbe7f53e051add94dbcdc779dae1820e0d6/pcl-scan-build.txt
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.