Red Hat Bugzilla – Bug 114250
bad use of const
Last modified: 2007-11-30 17:10:35 EST
Description of problem:
I just tried to compile package ghostscript-7.07-11, from Redhat
Fedora Core 1.
The compiler said
./src/gdevesmv.c(1531): error #137: expression must be a modifiable lvalue
pdev->current_color = color;
but, earlier in the file is
gx_device_esmv const *pdev = (gx_device_esmv *) dev;
which means that what pdev is pointing at is read-only.
Suspect possible mixup with const. Maybe
gx_device_esmv * const pdev = (gx_device_esmv *) dev;
would shut up the compiler.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
Fixed in CVS; next build (after 7.07-18) will fix it.