Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Sep 2004 19:36:50 +0200 (CEST)
From:      Dan Lukes <dan@obluda.cz>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   bin/71671: [PATCH] cleanup of the usr.sbin/apmd code
Message-ID:  <200409121736.i8CHaoV1010923@kulesh.obluda.cz>
Resent-Message-ID: <200409121740.i8CHeSPd009183@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         71671
>Category:       bin
>Synopsis:       [PATCH] cleanup of the usr.sbin/apmd code
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Sep 12 17:40:27 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Dan Lukes
>Release:        FreeBSD 5.3-BETA3 i386
>Organization:
Obludarium
>Environment:
System: FreeBSD 5.3-BETA3 #8: Sun Sep 5 07:06:40 CEST 2004 i386
usr.sbin/apmd/apmdlex.l,v 1.3 2001/05/15 05:13:45 nsayer
usr.sbin/apmd/apmdparse.y,v 1.5 2003/06/16 14:57:07 maxim

>Description:
	There are more than 5000 warnings issued during "make buildworld".
Some of them are false positives, but some of them are sign of true errors.

	Nobody is upset by warnings due it's amount, so some errors remain
uncorrected.

	I want to cleanup the code-base from warnings, so warnings will
become "attention mark" again.

usr.sbin/apmd/apmdlex.l:453: warning: 'yyunput' defined but not used
y.tab.c:298: warning: implicit declaration of function `yylex'
y.tab.c:339: warning: implicit declaration of function `yyerror'

>How-To-Repeat:
	N/A
>Fix:
*** usr.sbin/apmd/apmdlex.l.ORIG	Tue May 15 07:13:45 2001
--- usr.sbin/apmd/apmdlex.l	Sun Sep 12 18:37:31 2004
***************
*** 30,35 ****
--- 30,37 ----
   * $FreeBSD: src/usr.sbin/apmd/apmdlex.l,v 1.3 2001/05/15 05:13:45 nsayer Exp $
   */
  
+ #define YY_NO_UNPUT 1
+ 
  #include <string.h>
  #include <syslog.h>
  #include <bitstring.h>
*** usr.sbin/apmd/apmdparse.y.ORIG	Tue Jul 15 22:47:04 2003
--- usr.sbin/apmd/apmdparse.y	Sun Sep 12 18:37:30 2004
***************
*** 40,45 ****
--- 40,48 ----
  #define YYDEBUG 1
  #endif
  
+ extern int      yylex();
+ void   yyerror(const char *);
+ 
  extern int first_time;
  
  %}
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200409121736.i8CHaoV1010923>