Bug 111279 - too few parameters
Summary: too few parameters
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: texinfo
Version: 1
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Tim Waugh
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2003-12-01 18:26 UTC by d.binderman
Modified: 2007-11-30 22:10 UTC (History)
0 users

Fixed In Version: 4.6-1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2003-12-02 18:14:39 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description d.binderman 2003-12-01 18:26:50 UTC
Description of problem:
I just tried to compile package texinfo-4.5-2 from Fedora.

The compiler said

1.

infomap.c(168): warning #165: too few arguments in function call

The source code is

          keymap[i].function = (InfoCommand *)keymap_copy_keymap (
              (Keymap)map[i].function, rootmap);

But the definition of keymap_copy_keymap is

/* Return a new keymap which is a copy of MAP. */
Keymap
keymap_copy_keymap (map, rootmap, newroot)
  Keymap map;
  Keymap rootmap;
  Keymap newroot;
{

Two parameters given, three accepted. Suggest improve code to
drop K&R style function definition, and use ISO C style instead.

2.

cmds.c(970): warning #165: too few arguments in function call
cmds.c(974): warning #165: too few arguments in function call

The source code is

  if (arg == START)
    {
      cm_w (START);
      add_char (' ');
    }
  else
    cm_w (END);

But

void
cm_w (arg, start, end)
     int arg, start, end;
{

One parameters give, three accepted. Suggest improve code to
drop K&R style function definition, and use ISO C style instead.



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

How reproducible:


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


Expected results:


Additional info:


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