Bug 113799 - returning reference to local variable ?
Summary: returning reference to local variable ?
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: festival
Version: 1
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: John (J5) Palmieri
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-01-18 11:50 UTC by d.binderman
Modified: 2013-03-13 04:46 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-04-22 05:13:27 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description d.binderman 2004-01-18 11:50:58 UTC
Description of problem:

I just tried to compile package festival-1.4.2-19, from Redhat
Fedora Core 1.

The compiler said

1.

EST_Pathname_unix.cc(148): warning #879: returning reference to local
variable

The source code is

EST_Pathname &operator += (EST_Pathname p, const EST_Pathname addition)
{ p = EST_Pathname::append(p, addition); return p; }

I think the compiler is correct. Maybe it would be better to have the
first parameter as a reference ?

EST_Pathname &operator += (EST_Pathname & p, const EST_Pathname addition)
{ 
	p = EST_Pathname::append(p, addition); 
	return p; 
}


2.

EST_Pathname_unix.cc(150): warning #879: returning reference to local
variable

Duplicate.



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


How reproducible:


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


Expected results:


Additional info:

Comment 1 Matthew Miller 2005-02-07 04:44:52 UTC
This is probably better reported to the upstream developers --
<http://www.cstr.ed.ac.uk/projects/festival/>.


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