Add empty ; after labels in ftpd?

Giorgos Keramidas <[email protected]>
Newsgroups gmane.os.freebsd.devel.audit
Message-ID <[email protected]>
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 [email protected]
with "unsubscribe freebsd-audit" in the body of the message
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.