Bug 142097 - missing return statement in non-void function
Summary: missing return statement in non-void function
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: kdenetwork
Version: 3
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Ngo Than
QA Contact: Ben Levenson
URL:
Whiteboard:
Keywords:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-12-07 10:36 UTC by David Binderman
Modified: 2007-11-30 22:10 UTC (History)
0 users

(edit)
Clone Of:
(edit)
Last Closed: 2004-12-07 12:57:28 UTC


Attachments (Terms of Use)

Description David Binderman 2004-12-07 10:36:40 UTC
Description of problem:

I just tried to compile package kdenetwork-3.3.0-5 from 
Redhat Fedora Core 3.

The compiler said


sambafile.cpp(206): warning #1011: missing return statement at end of
non-void function "SambaFile::slotApply"

The source code is

    connect( job, SIGNAL( result( KIO::Job * ) ),
             this, SLOT( slotSaveJobFinished ( KIO::Job * ) ) );
  }

}

I agree with the compiler. This code would benefit from adding 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 Ngo Than 2004-12-07 12:57:28 UTC
it's now fixed in kdenetwork-3.3.2-0.2. Thanks for your report.


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