Bug 114250
| Summary: | bad use of const | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | d.binderman |
| Component: | ghostscript | Assignee: | Tim Waugh <twaugh> |
| Status: | CLOSED RAWHIDE | QA Contact: | Mike McLean <mikem> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 1 | ||
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2004-01-28 11:20:49 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
Fixed in CVS; next build (after 7.07-18) will fix it. |
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: