Bug 116273 - delete dead variable
Summary: delete dead variable
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: bison
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Roland McGrath
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-02-19 16:41 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: 2004-02-19 22:00:58 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description d.binderman 2004-02-19 16:41:40 UTC
Description of problem:

I just tried to compile development package bison-1.875-6

The compiler said

location.c(27): remark #300: const variable "empty_location" requires
an initializer

The source code is

location const empty_location;

but

[root@localhost SPECS]# grep empty_location
../BUILD/bison-1.875/src/location.c
location const empty_location;
[root@localhost SPECS]#

Suggest delete unused variable.


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


How reproducible:


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


Expected results:


Additional info:

Comment 1 Roland McGrath 2004-02-19 22:00:58 UTC
That variable is used elsewhere, so your change is erroneous.
You cited a warning message from some third-party compiler.
No such compilers are supported on Fedora.  If you want to avoid that
warning, a change may be appropriate.  But that is an upstream issue,
if upstream maintainers care about your compiler.



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