Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Jun 2002 08:39:14 +0300
From:      Giorgos Keramidas <keramida@FreeBSD.org>
To:        audit@FreeBSD.org
Subject:   Add empty ; after labels in ftpd?
Message-ID:  <20020620053914.GA67695@hades.hell.gr>

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

How does the following look?  I was trying to make some other,
unrelated changes to ftpd and this is something that keeps gcc3
unhappy.  Should I commit this, or is there some other better way of
fixing such warnings?

%%%
Add empty statements after two labels at the end of blocks,
that trigger warnings with gcc3.

Index: ftpcmd.y
===================================================================
RCS file: /home/ncvs/src/libexec/ftpd/ftpcmd.y,v
retrieving revision 1.33
diff -u -r1.33 ftpcmd.y
--- ftpcmd.y	14 Mar 2002 16:05:06 -0000	1.33
+++ ftpcmd.y	20 Jun 2002 05:32:04 -0000
@@ -198,6 +198,7 @@
 			port_check_v6("pcmd");
 #endif
 		port_done:
+			;
 		}
 	| LPRT check_login SP host_long_port CRLF
 		{
@@ -219,6 +220,7 @@
 				goto lprt_done;
 #endif
 		lprt_done:
+			;
 		}
 	| EPRT check_login SP STRING CRLF
 		{
%%%

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-audit" in the body of the message




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