Bug 137857 - missing return statement
Summary: missing return statement
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: pcmcia-cs
Version: 3
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Dave Jones
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-11-02 09:42 UTC by David Binderman
Modified: 2015-01-04 22:11 UTC (History)
2 users (show)

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


Attachments (Terms of Use)

Description David Binderman 2004-11-02 09:42:12 UTC
Description of problem:

I just tried to compile package pcmcia-cs-3.2.7-1.12 from 
Redhat Fedora Core 3 Test 3.

The compiler said

yacc_cis.y(398): warning #1011: missing return statement at end of
non-void function "new_tuple"

The source code is

static tuple_info_t *new_tuple(u_char type, cisparse_t *parse)
{
    tuple_info_t *t = calloc(1, sizeof(tuple_info_t));
    t->type = type;
    t->parse = parse;
    t->next = NULL;
}

Suggest either add return type or mark the function as 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 Dave Jones 2005-01-11 02:10:02 UTC
fixed in cvs.



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