Bug 136090

Summary: missing return statement
Product: [Fedora] Fedora Reporter: David Binderman <dcb314>
Component: coreutilsAssignee: Tim Waugh <twaugh>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 3   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-12-10 11:52:25 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description David Binderman 2004-10-17 19:43:38 UTC
Description of problem:

I just tried to compile package coreutils-5.2.1-26 from
Redhat Fedora Core 3 Test 3.

The compiler said

fold.c(256): warning #1011: missing return statement at end of
non-void function "fold_text"

The source code is

	free(line_out);
}

Suggest add return statement at end of 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 Tim Waugh 2004-10-18 12:41:39 UTC
Better solution is to make the function return void.

Reported upstream.

Comment 2 Tim Waugh 2004-10-18 15:43:18 UTC
Actually this comes from coreutils-i18n.patch.  Fixed in CVS.