NetBSD Problem Report #1101

From gnats  Sat Jun  3 20:45:47 1995
Received: from pain.lcs.mit.edu (pain.lcs.mit.edu [128.52.46.239]) by sun-lamp.cs.berkeley.edu (8.6.10/8.6.10) with ESMTP id UAA00205 for <gnats-bugs@sun-lamp.cs.berkeley.edu>; Sat, 3 Jun 1995 20:45:46 -0700
Message-Id: <199506040331.UAA05653@gandalf.sigmasoft.com>
Date: Sat, 3 Jun 1995 20:31:13 -0700
From: Thorsten Lockert <tholo@SigmaSoft.COM>
Reply-To: tholo@SigmaSoft.COM
To: gnats-bugs@netbsd.org
Subject: compile warnings in liby
X-Send-Pr-Version: 3.2

>Number:         1101
>Category:       lib
>Synopsis:       compile warnings in liby
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    lib-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jun 03 20:50:06 +0000 1995
>Closed-Date:    Fri Jun 23 15:59:09 +0000 1995
>Last-Modified:  
>Originator:     Thorsten Lockert
>Release:        May 28, 1995
>Organization:
SigmaSoft, Th. Lockert
>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 several compile warnings in liby when compiled with
	-Wall -Wstrict-prototypes

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

>Fix:
	Apply the following patches:

diff -c src/lib/liby.orig/main.c src/lib/liby/main.c
*** src/lib/liby.orig/main.c	Sat Jun  3 20:22:50 1995
--- src/lib/liby/main.c	Sat Jun  3 20:28:05 1995
***************
*** 36,42 ****
  static char rcsid[] = "$Id: main.c,v 1.2 1993/08/01 18:31:35 mycroft Exp $";
  #endif /* not lint */

! main()
  {
  	exit(yyparse());
  }
--- 36,51 ----
  static char rcsid[] = "$Id: main.c,v 1.2 1993/08/01 18:31:35 mycroft Exp $";
  #endif /* not lint */

! #include <stdlib.h>
! 
! int yyparse __P((void));
! int main __P((int, char **, char **));
! 
! int
! main(argc, argv, envp)
! int argc;
! char **argv;
! char **envp;
  {
  	exit(yyparse());
  }
diff -c src/lib/liby.orig/yyerror.c src/lib/liby/yyerror.c
*** src/lib/liby.orig/yyerror.c	Sat Jun  3 20:22:50 1995
--- src/lib/liby/yyerror.c	Sat Jun  3 20:25:09 1995
***************
*** 38,45 ****

  #include <stdio.h>

  yyerror(msg)
! char *msg;
  {
  	(void)fprintf(stderr, "%s\n", msg);
  	return(0);
--- 38,48 ----

  #include <stdio.h>

+ int yyerror __P((const char *));
+ 
+ int
  yyerror(msg)
! const char *msg;
  {
  	(void)fprintf(stderr, "%s\n", msg);
  	return(0);
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: pk 
State-Changed-When: Fri Jun 23 11:59:09 EDT 1995 
State-Changed-Why:  
Applied suggested prototype/declaration changes. 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.