Bug 138173 - missing return statement
Summary: missing return statement
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: ttcp
Version: 3
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Nalin Dahyabhai
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-11-05 09:54 UTC by David 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: 2005-02-13 10:36:42 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description David Binderman 2004-11-05 09:54:55 UTC
Description of problem:

I just tried to compile package ttcp-1.12-10 from 
Redhat Fedora Core 3 Test 3.

The compiler said

ttcp.c(472): remark #1011: missing return statement at end of non-void
function "pattern"

The source code is

pattern( cp, cnt )
register char *cp;
register int cnt;
{
        register char c;
        c = 0;
        while( cnt-- > 0 )  {
                while( !isprint((c&0x7F)) )  c++;
                *cp++ = (c++&0x7F);
        }
}

Suggest change return type of the function to void.


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


How reproducible:


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


Expected results:


Additional info:

Comment 1 Florian La Roche 2005-02-13 10:36:42 UTC
-11 will have this fixed



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