Bug 138173 - missing return statement
missing return statement
Product: Fedora
Classification: Fedora
Component: ttcp (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Nalin Dahyabhai
Depends On:
  Show dependency treegraph
Reported: 2004-11-05 04:54 EST by David Binderman
Modified: 2007-11-30 17:10 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-02-13 05:36:42 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description David Binderman 2004-11-05 04:54:55 EST
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:
Actual results:

Expected results:

Additional info:
Comment 1 Florian La Roche 2005-02-13 05:36:42 EST
-11 will have this fixed

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