Bug 138089 - missing return statement
Summary: missing return statement
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: rpm
Version: 3
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Paul Nasrat
QA Contact: Mike McLean
URL:
Whiteboard:
Keywords:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-11-04 16:11 UTC by David Binderman
Modified: 2007-11-30 22:10 UTC (History)
1 user (show)

(edit)
Clone Of:
(edit)
Last Closed: 2005-11-28 21:44:45 UTC


Attachments (Terms of Use)

Description David Binderman 2004-11-04 16:11:55 UTC
Description of problem:

I just tried to compile package rpm-4.3.2-8 from 
Redhat Fedora Core 3 Test 3.

The compiler said

local/linit.c(7): warning #1011: missing return statement at end of
non-void function "luaopen_init"

The source code is

LUA_API int luaopen_init(lua_State *L)
{
#include "linit.lch"
}

Suggest add return statement at the end of the routine.


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


How reproducible:


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


Expected results:


Additional info:

Comment 1 Paul Nasrat 2005-11-28 21:44:45 UTC
Rawhide rpm's lua:

LUA_API int luaopen_init(lua_State *L)
{
#include "linit.lch"
    return 0;
}



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