[Patches] [ python-Patches-1703270 ] missing declaration in readline.c

SourceForge.net noreply at sourceforge.net
Wed Apr 18 23:43:45 CEST 2007


Patches item #1703270, was opened at 2007-04-18 17:43
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1703270&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Alexander Belopolsky (belopolsky)
Assigned to: Nobody/Anonymous (nobody)
Summary: missing declaration in readline.c

Initial Comment:
If HAVE_RL_COMPLETION_MATCHES is not defined, readline.c code does not define completion_matches macro in an apparent hope that completion_matches will be linked to a n internal rl function. Attached patch adds the missing extern declaration to supress compiler warnings.

Currently gcc complains as follows:

Modules/readline.c:681: warning: implicit declaration of function `completion_matches'
Modules/readline.c:681: warning: return makes pointer from integer without a cast

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1703270&group_id=5470


More information about the Patches mailing list