Bug 114250 - bad use of const
bad use of const
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: ghostscript (Show other bugs)
1
All Linux
medium Severity medium
: ---
: ---
Assigned To: Tim Waugh
Mike McLean
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2004-01-25 08:41 EST by d.binderman
Modified: 2007-11-30 17:10 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2004-01-28 06:20:49 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description d.binderman 2004-01-25 08:41:40 EST
Description of problem:

I just tried to compile package ghostscript-7.07-11, from Redhat
Fedora Core 1.

The compiler said

1.

./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):


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:
Comment 1 Tim Waugh 2004-01-28 06:20:49 EST
Fixed in CVS; next build (after 7.07-18) will fix it.

Note You need to log in before you can comment on or make changes to this bug.