Bug 114287 - missing return statement
Summary: missing return statement
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: gnucash
Version: 1
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-01-26 10:40 UTC by d.binderman
Modified: 2014-03-17 02:41 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2004-04-19 20:28:46 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description d.binderman 2004-01-26 10:40:19 UTC
Description of problem:

I just tried to compile package gnucash-1.8.7-1, from Redhat
Fedora Core 1.

The compiler said

1.

ofx_container_main.cpp(63): warning #1011: missing return statement at
end of non-void function
"OfxMainContainer::add_container(OfxGenericContainer *)"

The source code is

int OfxMainContainer::add_container(OfxGenericContainer * container)
{
  message_out(DEBUG,"OfxMainContainer::add_container for element " +
container->tag_identifier + "; destroying the generic container");
  /* Call gen_event anyway, it could be a status container or similar */
  container->gen_event();
  delete container;
}

Seems to be missing a return statement at the end of the routine.


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


How reproducible:


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


Expected results:


Additional info:

Comment 1 Bill Nottingham 2004-01-26 16:06:51 UTC
What compiler are you using?

Comment 2 d.binderman 2004-01-26 22:07:53 UTC
>What compiler are you using?

Intel 8.0 - it has three advantages over GNU

1. Numbered warning messages - see above.
2. More warning messages.
3. Better code generation.



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