New Ghostscript/GhostPDL compiler warnings - 2018-01-09-10:15:11 - 3927036c14c12857be7dbf98dc777631a365977e

[email protected] Tue, 9 Jan 2018 11:43:40 -0800 (PST)
Newsgroups gmane.comp.printing.ghostscript.regression
Message-ID <20180109194340.84A002040613@i7>
Previous Revision: a8612bfd86f7753fceb738364b2808a4ad9d3bdf
 Current Revision: 3927036c14c12857be7dbf98dc777631a365977e

commit 3927036c14c12857be7dbf98dc777631a365977e
Author:     Robin Watts <[email protected]>
AuthorDate: Tue Jan 9 16:38:04 2018 +0000
CommitDate: Tue Jan 9 18:10:36 2018 +0000

    Fix problem with bitrgbtags and ROPs.
    
    With bitrgbtags, we can get called to do 24 bit rop operations
    with transparency, with colors like 0x01ffffff.
    
    The transparency rop code is supposed to spot 0xffffff as meaning
    "be transparent", but the tag in the top byte confuses it.
    
    Accordingly, mask off stray bits in the colors before using them.
    
    The same potentially happens for an 8 bit + tags device so we cope
    with that too.

base/gdevmr8n.c



Ghostscript:

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

./base/gdevmr8n.c:174:21: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
./base/gdevmr8n.c:180:21: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]

http://miles.ghostscript.com:8080/artifex/3927036c14c12857be7dbf98dc777631a365977e/gs-gcc-warnings.txt



new clang warnings (clang version 3.8.0-2ubuntu4 (tags/RELEASE_380/final)): 

./base/gdevmr8n.c:174:21: warning: incompatible pointer types assigning to 'const gx_color_index *' (aka 'const unsigned long long *') from 'rop_operand [2]' [-Wincompatible-pointer-types]
            scolors = local_scolors;
                    ^ ~~~~~~~~~~~~~

./base/gdevmr8n.c:180:21: warning: incompatible pointer types assigning to 'const gx_color_index *' (aka 'const unsigned long long *') from 'rop_operand [2]' [-Wincompatible-pointer-types]
            tcolors = local_tcolors;
                    ^ ~~~~~~~~~~~~~


http://miles.ghostscript.com:8080/artifex/3927036c14c12857be7dbf98dc777631a365977e/gs-clang-warnings.txt



new scan-build warnings:

./base/gdevmr8n.c:174:21: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
             scolors = local_scolors;
                     ^

./base/gdevmr8n.c:180:21: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
             tcolors = local_tcolors;
                     ^


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

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




GhostPCL:

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

./base/gdevmr8n.c:174:21: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
./base/gdevmr8n.c:180:21: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]

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



new scan-build warnings:

./base/gdevmr8n.c:174:21: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
             scolors = local_scolors;
                     ^

./base/gdevmr8n.c:180:21: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
             tcolors = local_tcolors;
                     ^


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

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