Bug 110692 - bad source code
Summary: bad source code
Keywords:
Status: CLOSED DUPLICATE of bug 116249
Alias: None
Product: Fedora
Classification: Fedora
Component: anacron
Version: 1
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jens Petersen
QA Contact: Brock Organ
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2003-11-23 16:02 UTC by d.binderman
Modified: 2007-11-30 22:10 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-02-21 19:00:08 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description d.binderman 2003-11-23 16:02:53 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows 98)

Description of problem:

I just tried to compile package anacron-2_3-29 from Fedora.

The compiler said

gregor.c(68): warning #300: const variable "isleap" requires an 
initializer
      const int isleap; /* save three calls to leap() */
                      ^

gregor.c(79): error #137: expression must be a modifiable lvalue
      isleap = leap(year);
      ^

compilation aborted for gregor.c (code 2)
make: *** [gregor.o] Error 2

Sounds like some work is required to get the declaration and
initialisation of isleap together.


Version-Release number of selected component (if applicable):
2_3-29 

How reproducible:
Always

Steps to Reproduce:
1. compile with ISO C compiler
2.
3.
    

Additional info:

Comment 1 Miloslav Trmac 2004-04-21 17:53:36 UTC

*** This bug has been marked as a duplicate of 116249 ***

Comment 2 Red Hat Bugzilla 2006-02-21 19:00:08 UTC
Changed to 'CLOSED' state since 'RESOLVED' has been deprecated.


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