Bug 138172

Summary: 3 * missing return statement
Product: [Fedora] Fedora Reporter: David Binderman <dcb314>
Component: tetexAssignee: Jindrich Novy <jnovy>
Status: CLOSED RAWHIDE QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 3CC: pknirsch
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: 2005-10-11 07:31:01 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description David Binderman 2004-11-05 09:52:46 UTC
Description of problem:

I just tried to compile package tetex-2.0.2-20 from 
Redhat Fedora Core 3 Test 3.

The compiler said

1.

config.c(201): warning #1011: missing return statement at end of
non-void function "iscfgtruedimen"

The source code is

boolean iscfgtruedimen(integer code)
{
    cfg_entry *ce;
    for (ce = cfg_tab; ce->name != 0; ce++)
        if (ce->code == code)
            return ce->is_true_dimen;
}

What happens if the for loop finishes ? The program falls off the
end of the routine. Suggest add return statement at the end of the
routine.

2.

writettf.c(526): remark #1011: missing return statement at end of
non-void function "ttf_reset_chksm"

Suggest mark routine as void return type.

3.

writettf.c(534): remark #1011: missing return statement at end of
non-void function "ttf_set_chksm"

Duplicate.


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


How reproducible:


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


Expected results:


Additional info:

Comment 1 Jindrich Novy 2005-10-11 07:31:01 UTC
This is now fixed by teTeX-3 in rawhide.