Bug 141585 - 2 * local variable used before set
Summary: 2 * local variable used before set
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: cups   
(Show other bugs)
Version: 3
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Tim Waugh
QA Contact:
URL:
Whiteboard:
Keywords:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-12-02 10:25 UTC by David Binderman
Modified: 2007-11-30 22:10 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2004-12-02 10:43:40 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

Description David Binderman 2004-12-02 10:25:17 UTC
Description of problem:

I just tried to compile package cups-1.1.22-0.rc1.8 from 
Redhat Fedora Core 3.

The compiler said

imagetops.c(300): remark #592: variable "xprint" is used before its
value is setimagetops.c(300): remark #592: variable "yprint" is used
before its value is set

The source code is

  fprintf(stderr, "DEBUG: Before scaling: xprint=%.1f, yprint=%.1f,
xppi=%d, yppi=%d, zoom=%.2f\n",
          xprint, yprint, xppi, yppi, zoom);

I agree with the compiler. This code would benefit from rework.



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-12-02 10:43:40 UTC
http://www.cups.org/str.php?L1012


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