Subject: lib/1102: compile warnings in lex library
To: None <gnats-admin@sun-lamp.cs.berkeley.edu>
From: Thorsten Lockert <tholo@SigmaSoft.COM>
List: netbsd-bugs
Date: 06/03/1995 21:05:07
>Number:         1102
>Category:       lib
>Synopsis:       compile warnings in lex library
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    lib-bug-people (Library Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jun  3 21:05:02 1995
>Originator:     Thorsten Lockert
>Organization:
SigmaSoft, Th. Lockert
>Release:        May 28, 1995
>Environment:
	
System: NetBSD gandalf.sigmasoft.com 1.0A NetBSD 1.0A (GANDALF) #1: Sun May 7 21:49:27 PDT 1995 tholo@gandalf.sigmasoft.com:/usr/src/sys/arch/i386/compile/GANDALF i386


>Description:
	There are compile warnings in the lex library src/lib/libl when
	compiled with the -Wall -Wstrict-prototypes flags

>How-To-Repeat:
	Compile with -Wall -Wstrict-prototypes

>Fix:
	Apply the following patches:

*** src/usr.bin/lex/libmain.c.orig	Sat Jun  3 20:45:40 1995
--- src/usr.bin/lex/libmain.c	Sat Jun  3 20:47:14 1995
***************
*** 2,12 ****
  
  /* $Header: /a/cvsroot/src/usr.bin/lex/libmain.c,v 1.2 1995/05/05 05:35:31 jtc Exp $ */
  
! extern int yylex();
  
! int main( argc, argv )
  int argc;
! char *argv[];
! 	{
  	return yylex();
! 	}
--- 2,18 ----
  
  /* $Header: /a/cvsroot/src/usr.bin/lex/libmain.c,v 1.2 1995/05/05 05:35:31 jtc Exp $ */
  
! #include <sys/cdefs.h>
  
! int yylex __P((void));
! 
! int main __P((int, char **, char **));
! 
! int
! main( argc, argv, envp )
  int argc;
! char **argv;
! char **envp;
! {
  	return yylex();
! }
*** src/usr.bin/lex/libyywrap.c.orig	Sat Jun  3 20:45:46 1995
--- src/usr.bin/lex/libyywrap.c	Sat Jun  3 20:47:03 1995
***************
*** 2,8 ****
  
  /* $Header: /a/cvsroot/src/usr.bin/lex/libyywrap.c,v 1.2 1995/05/05 05:35:32 jtc Exp $ */
  
! int yywrap()
! 	{
  	return 1;
! 	}
--- 2,13 ----
  
  /* $Header: /a/cvsroot/src/usr.bin/lex/libyywrap.c,v 1.2 1995/05/05 05:35:32 jtc Exp $ */
  
! #include <sys/cdefs.h>
! 
! int yywrap __P((void));
! 
! int
! yywrap()
! {
  	return 1;
! }
>Audit-Trail:
>Unformatted: