Bug 138172 - 3 * missing return statement
Summary: 3 * missing return statement
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: tetex
Version: 3
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jindrich Novy
QA Contact: David Lawrence
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-11-05 09:52 UTC by David Binderman
Modified: 2013-07-02 23:03 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-10-11 07:31:01 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.


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