New Ghostscript/GhostPDL compiler warnings - 2019-04-26-11:30:28 - e1a534e843743230019de57a36a04129347a505e

[email protected] Fri, 26 Apr 2019 13:22:45 -0700 (PDT)
Newsgroups gmane.comp.printing.ghostscript.regression
Message-ID <20190426202246.113DF2040FB7@i7>
Previous Revision: 6fcd76043a6fe69ca2b8ecac498f9ca79829931f
 Current Revision: e1a534e843743230019de57a36a04129347a505e

commit e1a534e843743230019de57a36a04129347a505e
Author:     Michael Vrhel <[email protected]>
AuthorDate: Fri Apr 26 11:25:19 2019 -0700
CommitDate: Fri Apr 26 11:26:29 2019 -0700

    Fix named color blending
    
    Named color blending was not working the way intended.  This was clearly visible
    when pushing a gradient through.   This now does a reasonable result blending
    the first colorant with white and then subsequent colorants with the current
    colorant.

base/gsicc_cache.c



Ghostscript:

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

./base/gsicc_cache.c:1580:11: warning: unused variable 'temp' [-Wunused-variable]
./base/gsicc_cache.c:1581:20: warning: unused variable 'white_lab' [-Wunused-variable]

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



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

./base/gsicc_cache.c:1580:11: warning: unused variable 'temp' [-Wunused-variable]
    float temp;
          ^

./base/gsicc_cache.c:1581:20: warning: unused variable 'white_lab' [-Wunused-variable]
    unsigned short white_lab[3] = {65535, 32767, 32767};
                   ^


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



new scan-build warnings:

./base/gsicc_cache.c:1580:11: warning: unused variable 'temp' [-Wunused-variable]
     float temp;
           ^

./base/gsicc_cache.c:1581:20: warning: Value stored to 'white_lab' during its initialization is never read
    unsigned short white_lab[3] = {65535, 32767, 32767};
                   ^~~~~~~~~      ~~~~~~~~~~~~~~~~~~~~~

./base/gsicc_cache.c:1581:20: warning: unused variable 'white_lab' [-Wunused-variable]
     unsigned short white_lab[3] = {65535, 32767, 32767};
                    ^

./base/gsicc_cache.c:1653:25: warning: Assigned value is garbage or undefined
                psrc[j] = temp_lab[j];
                        ^ ~~~~~~~~~~~


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

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




GhostPCL:

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

./base/gsicc_cache.c:1580:11: warning: unused variable 'temp' [-Wunused-variable]
./base/gsicc_cache.c:1581:20: warning: unused variable 'white_lab' [-Wunused-variable]

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



new scan-build warnings:

./base/gsicc_cache.c:1580:11: warning: unused variable 'temp' [-Wunused-variable]
     float temp;
           ^

./base/gsicc_cache.c:1581:20: warning: Value stored to 'white_lab' during its initialization is never read
    unsigned short white_lab[3] = {65535, 32767, 32767};
                   ^~~~~~~~~      ~~~~~~~~~~~~~~~~~~~~~

./base/gsicc_cache.c:1581:20: warning: unused variable 'white_lab' [-Wunused-variable]
     unsigned short white_lab[3] = {65535, 32767, 32767};
                    ^

./base/gsicc_cache.c:1653:25: warning: Assigned value is garbage or undefined
                psrc[j] = temp_lab[j];
                        ^ ~~~~~~~~~~~


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

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