Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/dist/ipf Add the __unused__ attribute to rcsid[]/sccsid[]. ...



details:   https://anonhg.NetBSD.org/src/rev/de1054889184
branches:  trunk
changeset: 525262:de1054889184
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Tue Apr 09 02:32:51 2002 +0000

description:
Add the __unused__ attribute to rcsid[]/sccsid[].  Need to talk
to Darren about this more, but this gets it to compile with gcc 3.2.

diffstat:

 dist/ipf/common.c          |  8 +++++---
 dist/ipf/facpri.c          |  5 +++--
 dist/ipf/fils.c            |  8 +++++---
 dist/ipf/ipf.c             |  8 +++++---
 dist/ipf/ipfs.c            |  5 +++--
 dist/ipf/ipft_ef.c         |  8 +++++---
 dist/ipf/ipft_hx.c         |  8 +++++---
 dist/ipf/ipft_pc.c         |  5 +++--
 dist/ipf/ipft_sn.c         |  5 +++--
 dist/ipf/ipft_td.c         |  8 +++++---
 dist/ipf/ipft_tx.c         |  8 +++++---
 dist/ipf/ipmon.c           |  8 +++++---
 dist/ipf/ipnat.c           |  8 +++++---
 dist/ipf/ipsend/ip.c       |  8 +++++---
 dist/ipf/ipsend/ipresend.c |  8 +++++---
 dist/ipf/ipsend/ipsend.c   |  8 +++++---
 dist/ipf/ipsend/ipsopt.c   |  8 +++++---
 dist/ipf/ipsend/iptest.c   |  8 +++++---
 dist/ipf/ipsend/iptests.c  |  8 +++++---
 dist/ipf/ipsend/resend.c   |  8 +++++---
 dist/ipf/ipsend/sbpf.c     |  8 +++++---
 dist/ipf/ipsend/sock.c     |  8 +++++---
 dist/ipf/ipt.c             |  8 +++++---
 dist/ipf/kmem.c            |  8 +++++---
 dist/ipf/misc.c            |  8 +++++---
 dist/ipf/natparse.c        |  8 +++++---
 dist/ipf/opt.c             |  8 +++++---
 dist/ipf/parse.c           |  8 +++++---
 dist/ipf/printnat.c        |  5 +++--
 29 files changed, 135 insertions(+), 82 deletions(-)

diffs (truncated from 623 to 300 lines):

diff -r 23b6a48ef227 -r de1054889184 dist/ipf/common.c
--- a/dist/ipf/common.c Tue Apr 09 02:20:10 2002 +0000
+++ b/dist/ipf/common.c Tue Apr 09 02:32:51 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: common.c,v 1.1.1.5 2002/03/14 12:30:07 martti Exp $    */
+/*     $NetBSD: common.c,v 1.2 2002/04/09 02:32:51 thorpej Exp $       */
 
 /*
  * Copyright (C) 1993-2001 by Darren Reed.
@@ -43,8 +43,10 @@
 #include "facpri.h"
 
 #if !defined(lint)
-static const char sccsid[] = "@(#)parse.c      1.44 6/5/96 (C) 1993-2000 Darren Reed";
-static const char rcsid[] = "@(#)$IPFilter: parse.c,v 2.8 1999/12/28 10:49:46 darrenr Exp $";
+static const char sccsid[] __attribute__((__unused__)) =
+    "@(#)parse.c       1.44 6/5/96 (C) 1993-2000 Darren Reed";
+static const char rcsid[] __attribute__((__unused__)) =
+    "@(#)$IPFilter: parse.c,v 2.8 1999/12/28 10:49:46 darrenr Exp $";
 #endif
 
 extern struct  ipopt_names     ionames[], secclass[];
diff -r 23b6a48ef227 -r de1054889184 dist/ipf/facpri.c
--- a/dist/ipf/facpri.c Tue Apr 09 02:20:10 2002 +0000
+++ b/dist/ipf/facpri.c Tue Apr 09 02:32:51 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: facpri.c,v 1.3 2002/01/24 08:21:31 martti Exp $        */
+/*     $NetBSD: facpri.c,v 1.4 2002/04/09 02:32:51 thorpej Exp $       */
 
 /*
  * Copyright (C) 1993-2001 by Darren Reed.
@@ -23,7 +23,8 @@
 #endif
 
 #if !defined(lint)
-static const char rcsid[] = "@(#)Id: facpri.c,v 1.3.2.4 2001/07/15 22:06:12 darrenr Exp";
+static const char rcsid[] __attribute__((__unused__)) =
+    "@(#)Id: facpri.c,v 1.3.2.4 2001/07/15 22:06:12 darrenr Exp";
 #endif
 
 typedef        struct  table   {
diff -r 23b6a48ef227 -r de1054889184 dist/ipf/fils.c
--- a/dist/ipf/fils.c   Tue Apr 09 02:20:10 2002 +0000
+++ b/dist/ipf/fils.c   Tue Apr 09 02:32:51 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fils.c,v 1.14 2002/03/14 12:32:36 martti Exp $ */
+/*     $NetBSD: fils.c,v 1.15 2002/04/09 02:32:51 thorpej Exp $        */
 
 /*
  * Copyright (C) 1993-2001 by Darren Reed.
@@ -95,8 +95,10 @@
 #endif
 
 #if !defined(lint)
-static const char sccsid[] = "@(#)fils.c       1.21 4/20/96 (C) 1993-2000 Darren Reed";
-static const char rcsid[] = "@(#)Id: fils.c,v 2.21.2.34 2002/02/22 15:32:45 darrenr Exp";
+static const char sccsid[] __attribute__((__unused__)) =
+    "@(#)fils.c        1.21 4/20/96 (C) 1993-2000 Darren Reed";
+static const char rcsid[] __attribute__((__unused__)) =
+    "@(#)Id: fils.c,v 2.21.2.34 2002/02/22 15:32:45 darrenr Exp";
 #endif
 
 extern char    *optarg;
diff -r 23b6a48ef227 -r de1054889184 dist/ipf/ipf.c
--- a/dist/ipf/ipf.c    Tue Apr 09 02:20:10 2002 +0000
+++ b/dist/ipf/ipf.c    Tue Apr 09 02:32:51 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ipf.c,v 1.8 2002/03/14 12:32:36 martti Exp $   */
+/*     $NetBSD: ipf.c,v 1.9 2002/04/09 02:32:51 thorpej Exp $  */
 
 /*
  * Copyright (C) 1993-2001 by Darren Reed.
@@ -51,8 +51,10 @@
 #include "ipl.h"
 
 #if !defined(lint)
-static const char sccsid[] = "@(#)ipf.c        1.23 6/5/96 (C) 1993-2000 Darren Reed";
-static const char rcsid[] = "@(#)Id: ipf.c,v 2.10.2.13 2002/02/22 15:32:53 darrenr Exp";
+static const char sccsid[] __attribute__((__unused__)) =
+    "@(#)ipf.c 1.23 6/5/96 (C) 1993-2000 Darren Reed";
+static const char rcsid[] __attribute__((__unused__)) =
+    "@(#)Id: ipf.c,v 2.10.2.13 2002/02/22 15:32:53 darrenr Exp";
 #endif
 
 #if    SOLARIS
diff -r 23b6a48ef227 -r de1054889184 dist/ipf/ipfs.c
--- a/dist/ipf/ipfs.c   Tue Apr 09 02:20:10 2002 +0000
+++ b/dist/ipf/ipfs.c   Tue Apr 09 02:32:51 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ipfs.c,v 1.5 2002/01/24 08:21:33 martti Exp $  */
+/*     $NetBSD: ipfs.c,v 1.6 2002/04/09 02:32:52 thorpej Exp $ */
 
 /*
  * Copyright (C) 1999-2001 by Darren Reed.
@@ -47,7 +47,8 @@
 #include "ipf.h"
 
 #if !defined(lint)
-static const char rcsid[] = "@(#)Id: ipfs.c,v 2.6.2.8 2001/09/14 18:52:21 darrenr Exp";
+static const char rcsid[] __attribute__((__unused__)) =
+    "@(#)Id: ipfs.c,v 2.6.2.8 2001/09/14 18:52:21 darrenr Exp";
 #endif
 
 #ifndef        IPF_SAVEDIR
diff -r 23b6a48ef227 -r de1054889184 dist/ipf/ipft_ef.c
--- a/dist/ipf/ipft_ef.c        Tue Apr 09 02:20:10 2002 +0000
+++ b/dist/ipf/ipft_ef.c        Tue Apr 09 02:32:51 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ipft_ef.c,v 1.4 2002/03/14 12:32:37 martti Exp $       */
+/*     $NetBSD: ipft_ef.c,v 1.5 2002/04/09 02:32:52 thorpej Exp $      */
 
 /*
  * Copyright (C) 1993-2001 by Darren Reed.
@@ -53,8 +53,10 @@
 #include "ipt.h"
 
 #if !defined(lint)
-static const char sccsid[] = "@(#)ipft_ef.c    1.6 2/4/96 (C)1995 Darren Reed";
-static const char rcsid[] = "@(#)Id: ipft_ef.c,v 2.2.2.2 2002/02/22 15:32:53 darrenr Exp";
+static const char sccsid[] __attribute__((__unused__)) =
+    "@(#)ipft_ef.c     1.6 2/4/96 (C)1995 Darren Reed";
+static const char rcsid[] __attribute__((__unused__)) =
+    "@(#)Id: ipft_ef.c,v 2.2.2.2 2002/02/22 15:32:53 darrenr Exp";
 #endif
 
 static int     etherf_open __P((char *));
diff -r 23b6a48ef227 -r de1054889184 dist/ipf/ipft_hx.c
--- a/dist/ipf/ipft_hx.c        Tue Apr 09 02:20:10 2002 +0000
+++ b/dist/ipf/ipft_hx.c        Tue Apr 09 02:32:51 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ipft_hx.c,v 1.4 2002/03/14 12:32:38 martti Exp $       */
+/*     $NetBSD: ipft_hx.c,v 1.5 2002/04/09 02:32:52 thorpej Exp $      */
 
 /*
  * Copyright (C) 1995-2001 by Darren Reed.
@@ -44,8 +44,10 @@
 #include "ipt.h"
 
 #if !defined(lint)
-static const char sccsid[] = "@(#)ipft_hx.c    1.1 3/9/96 (C) 1996 Darren Reed";
-static const char rcsid[] = "@(#)Id: ipft_hx.c,v 2.2.2.5 2002/02/22 15:32:54 darrenr Exp";
+static const char sccsid[] __attribute__((__unused__)) =
+    "@(#)ipft_hx.c     1.1 3/9/96 (C) 1996 Darren Reed";
+static const char rcsid[] __attribute__((__unused__)) =
+    "@(#)Id: ipft_hx.c,v 2.2.2.5 2002/02/22 15:32:54 darrenr Exp";
 #endif
 
 extern int     opts;
diff -r 23b6a48ef227 -r de1054889184 dist/ipf/ipft_pc.c
--- a/dist/ipf/ipft_pc.c        Tue Apr 09 02:20:10 2002 +0000
+++ b/dist/ipf/ipft_pc.c        Tue Apr 09 02:32:51 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ipft_pc.c,v 1.4 2002/03/14 12:32:38 martti Exp $       */
+/*     $NetBSD: ipft_pc.c,v 1.5 2002/04/09 02:32:52 thorpej Exp $      */
 
 /*
  * Copyright (C) 1993-2001 by Darren Reed.
@@ -36,7 +36,8 @@
 #include "ipt.h"
 
 #if !defined(lint)
-static const char rcsid[] = "@(#)Id: ipft_pc.c,v 2.2.2.3 2002/02/22 15:32:54 darrenr Exp";
+static const char rcsid[] __attribute__((__unused__)) =
+    "@(#)Id: ipft_pc.c,v 2.2.2.3 2002/02/22 15:32:54 darrenr Exp";
 #endif
 
 struct llc     {
diff -r 23b6a48ef227 -r de1054889184 dist/ipf/ipft_sn.c
--- a/dist/ipf/ipft_sn.c        Tue Apr 09 02:20:10 2002 +0000
+++ b/dist/ipf/ipft_sn.c        Tue Apr 09 02:32:51 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ipft_sn.c,v 1.4 2002/03/14 12:32:38 martti Exp $       */
+/*     $NetBSD: ipft_sn.c,v 1.5 2002/04/09 02:32:52 thorpej Exp $      */
 
 /*
  * Copyright (C) 1993-2001 by Darren Reed.
@@ -40,7 +40,8 @@
 #include "ipt.h"
 
 #if !defined(lint)
-static const char rcsid[] = "@(#)Id: ipft_sn.c,v 2.2.2.3 2002/02/22 15:32:54 darrenr Exp";
+static const char rcsid[] __attribute__((__unused__)) =
+    "@(#)Id: ipft_sn.c,v 2.2.2.3 2002/02/22 15:32:54 darrenr Exp";
 #endif
 
 struct llc     {
diff -r 23b6a48ef227 -r de1054889184 dist/ipf/ipft_td.c
--- a/dist/ipf/ipft_td.c        Tue Apr 09 02:20:10 2002 +0000
+++ b/dist/ipf/ipft_td.c        Tue Apr 09 02:32:51 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ipft_td.c,v 1.4 2002/03/14 12:32:38 martti Exp $       */
+/*     $NetBSD: ipft_td.c,v 1.5 2002/04/09 02:32:52 thorpej Exp $      */
 
 /*
  * Copyright (C) 1993-2001 by Darren Reed.
@@ -62,8 +62,10 @@
 #include "ipt.h"
 
 #if !defined(lint)
-static const char sccsid[] = "@(#)ipft_td.c    1.8 2/4/96 (C)1995 Darren Reed";
-static const char rcsid[] = "@(#)Id: ipft_td.c,v 2.2.2.2 2002/02/22 15:32:54 darrenr Exp";
+static const char sccsid[] __attribute__((__unused__)) =
+    "@(#)ipft_td.c     1.8 2/4/96 (C)1995 Darren Reed";
+static const char rcsid[] __attribute__((__unused__)) =
+    "@(#)Id: ipft_td.c,v 2.2.2.2 2002/02/22 15:32:54 darrenr Exp";
 #endif
 
 static int     tcpd_open __P((char *));
diff -r 23b6a48ef227 -r de1054889184 dist/ipf/ipft_tx.c
--- a/dist/ipf/ipft_tx.c        Tue Apr 09 02:20:10 2002 +0000
+++ b/dist/ipf/ipft_tx.c        Tue Apr 09 02:32:51 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ipft_tx.c,v 1.5 2002/03/14 12:32:38 martti Exp $       */
+/*     $NetBSD: ipft_tx.c,v 1.6 2002/04/09 02:32:52 thorpej Exp $      */
 
 /*
  * Copyright (C) 1995-2001 by Darren Reed.
@@ -45,8 +45,10 @@
 #include "ipt.h"
 
 #if !defined(lint)
-static const char sccsid[] = "@(#)ipft_tx.c    1.7 6/5/96 (C) 1993 Darren Reed";
-static const char rcsid[] = "@(#)Id: ipft_tx.c,v 2.3.2.6 2002/03/13 03:55:15 darrenr Exp";
+static const char sccsid[] __attribute__((__unused__)) =
+    "@(#)ipft_tx.c     1.7 6/5/96 (C) 1993 Darren Reed";
+static const char rcsid[] __attribute__((__unused__)) =
+    "@(#)Id: ipft_tx.c,v 2.3.2.6 2002/03/13 03:55:15 darrenr Exp";
 #endif
 
 extern int     opts;
diff -r 23b6a48ef227 -r de1054889184 dist/ipf/ipmon.c
--- a/dist/ipf/ipmon.c  Tue Apr 09 02:20:10 2002 +0000
+++ b/dist/ipf/ipmon.c  Tue Apr 09 02:32:51 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ipmon.c,v 1.8 2002/03/14 12:32:38 martti Exp $ */
+/*     $NetBSD: ipmon.c,v 1.9 2002/04/09 02:32:52 thorpej Exp $        */
 
 /*
  * Copyright (C) 1993-2002 by Darren Reed.
@@ -69,8 +69,10 @@
 #include "netinet/ip_state.h"
 
 #if !defined(lint)
-static const char sccsid[] = "@(#)ipmon.c      1.21 6/5/96 (C)1993-2000 Darren Reed";
-static const char rcsid[] = "@(#)Id: ipmon.c,v 2.12.2.32 2002/03/13 03:30:18 darrenr Exp";
+static const char sccsid[] __attribute__((__unused__)) =
+    "@(#)ipmon.c       1.21 6/5/96 (C)1993-2000 Darren Reed";
+static const char rcsid[] __attribute__((__unused__)) =
+    "@(#)Id: ipmon.c,v 2.12.2.32 2002/03/13 03:30:18 darrenr Exp";
 #endif
 
 
diff -r 23b6a48ef227 -r de1054889184 dist/ipf/ipnat.c
--- a/dist/ipf/ipnat.c  Tue Apr 09 02:20:10 2002 +0000
+++ b/dist/ipf/ipnat.c  Tue Apr 09 02:32:51 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ipnat.c,v 1.9 2002/03/14 12:32:38 martti Exp $ */
+/*     $NetBSD: ipnat.c,v 1.10 2002/04/09 02:32:52 thorpej Exp $       */
 
 /*
  * Copyright (C) 1993-2002 by Darren Reed.
@@ -61,8 +61,10 @@
 #endif
 
 #if !defined(lint)
-static const char sccsid[] ="@(#)ipnat.c       1.9 6/5/96 (C) 1993 Darren Reed";
-static const char rcsid[] = "@(#)Id: ipnat.c,v 2.16.2.20 2002/02/22 15:32:55 darrenr Exp";
+static const char sccsid[] __attribute__((__unused__)) =
+    "@(#)ipnat.c       1.9 6/5/96 (C) 1993 Darren Reed";
+static const char rcsid[] __attribute__((__unused__)) =
+    "@(#)Id: ipnat.c,v 2.16.2.20 2002/02/22 15:32:55 darrenr Exp";
 #endif
 
 
diff -r 23b6a48ef227 -r de1054889184 dist/ipf/ipsend/ip.c
--- a/dist/ipf/ipsend/ip.c      Tue Apr 09 02:20:10 2002 +0000
+++ b/dist/ipf/ipsend/ip.c      Tue Apr 09 02:32:51 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ip.c,v 1.4 2002/03/14 12:32:39 martti Exp $    */
+/*     $NetBSD: ip.c,v 1.5 2002/04/09 02:32:54 thorpej Exp $   */
 
 /*
  * ip.c (C) 1995-1998 Darren Reed
@@ -33,8 +33,10 @@
 #include "ipsend.h"
 
 #if !defined(lint)
-static const char sccsid[] = "%W% %G% (C)1995";
-static const char rcsid[] = "@(#)Id: ip.c,v 2.1.4.4 2002/02/22 15:32:57 darrenr Exp";
+static const char sccsid[] __attribute__((__unused__)) =
+    "%W% %G% (C)1995";
+static const char rcsid[] __attribute__((__unused__)) =
+    "@(#)Id: ip.c,v 2.1.4.4 2002/02/22 15:32:57 darrenr Exp";
 #endif
 
 static char    *ipbuf = NULL, *ethbuf = NULL;
diff -r 23b6a48ef227 -r de1054889184 dist/ipf/ipsend/ipresend.c
--- a/dist/ipf/ipsend/ipresend.c        Tue Apr 09 02:20:10 2002 +0000
+++ b/dist/ipf/ipsend/ipresend.c        Tue Apr 09 02:32:51 2002 +0000
@@ -1,4 +1,4 @@



Home | Main Index | Thread Index | Old Index