Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Compile warnings with latest CVS



Bart Schaefer wrote:
> On Feb 7, 11:58am, Peter Stephenson wrote:
> } Subject: Re: Compile warnings with latest CVS
> }
> } Bart Schaefer wrote:
> } > ../../zsh-4.0/Src/init.c:1179: warning: `autoload_zlesetkeymap' defined b
> ut not used
> } 
> } I suppose the patch below fixes this.
> 
> It changes it, at least:
> 
> init.pro:3: warning: `autoload_zlesetkeymap' declared `static' but never defi
> ned

Hmm, I can see myself losing interest in this one rather quickly...  how
about...

Index: Src/init.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/init.c,v
retrieving revision 1.47
diff -u -r1.47 init.c
--- Src/init.c	7 Feb 2005 12:34:00 -0000	1.47
+++ Src/init.c	7 Feb 2005 12:37:52 -0000
@@ -1173,6 +1173,7 @@
     return (unsigned char *)shingetline();
 }
 
+/**/
 #ifdef UNLINKED_XMOD_zshQszle
 
 /**/
@@ -1184,6 +1185,7 @@
     (*zlesetkeymapptr)(mode);
 }
 
+/**/
 #endif
 
 /* compctl entry point pointers.  Similar to the ZLE ones. */

-- 
Peter Stephenson <pws@xxxxxxx>                  Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK                          Tel: +44 (0)1223 692070


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

**********************************************************************



Messages sorted by: Reverse Date, Date, Thread, Author