Re: Ghostrscript/GhostPDL 9.18 Release Candidate 1

Johannes Meixner <[email protected]>
Newsgroups gmane.comp.printing.ghostscript.devel
Message-ID <[email protected]>
Hello,

On Sep 23 16:31 Chris Liddell wrote (excerpt):
> release candidates for Ghostscript and GhostPDL 9.18
...
> http://downloads.ghostscript.com/public/.release_candidate/
...
> Please give them a try on your system

It fails to compile in the openSUSE build service because of this:
------------------------------------------------------------------------
./base/gximono.c:1068:43: warning:
  assignment makes pointer from integer without a cast [-Wint-conversion]
    dev_value = color_cache[*psrc * spp_out];
              ^
./base/gximono.c:1100:43: warning:
  assignment makes pointer from integer without a cast [-Wint-conversion]
    dev_value = color_cache[*psrc * spp_out];
              ^
./base/gximono.c:1138:43: warning:
  assignment makes pointer from integer without a cast [-Wint-conversion]
    dev_value = color_cache[*psrc * spp_out];
              ^
./base/gximono.c:1175:43: warning:
  assignment makes pointer from integer without a cast [-Wint-conversion]
    dev_value = color_cache[*psrc * spp_out];
              ^
------------------------------------------------------------------------

In the openSUSE build service there are automated checks
that let build fail for some specific warnings and one
is triggred by "-Wint-conversion" so that build fails with
------------------------------------------------------------------------
64bit-portability-issue ./base/gximono.c:1068, 1100, 1138, 1175
------------------------------------------------------------------------

I had a look at base/gximono.c but for me it is not obvious
what is actually meant with
   dev_value = color_cache[*psrc * spp_out];

dev_value is a pointer to byte and I do not understand
the idea behind how that pointer value is calculated
so that currently I cannot provide a reasonable patch.


Kind Regards
Johannes Meixner
-- 
SUSE LINUX GmbH - GF: Felix Imendoerffer, Jane Smithard,
Graham Norton - HRB 21284 (AG Nuernberg)
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.