%{
/* ascend-grammar.y
*
- * $Id: ascend-grammar.y,v 1.23 2001/12/06 08:25:51 guy Exp $
+ * $Id: ascend-grammar.y,v 1.24 2002/03/02 20:41:07 guy Exp $
*
* Wiretap Library
* Copyright (c) 1998 by Gilbert Ramirez <gram@alumni.rice.edu>
}
void
-yyerror (char *s)
+yyerror (char *s _U_)
{
- /* fprintf (stderr, "%s\n", s); */
}
-# $Id: configure.in,v 1.36 2002/02/27 09:42:52 guy Exp $
+# $Id: configure.in,v 1.37 2002/03/02 20:41:07 guy Exp $
dnl
dnl Process this file with autoconf 2.13 or later to produce a
dnl configure script; 2.12 doesn't generate a "configure" script that
AC_SUBST(FLEX_PATH)
#
-# If we're running gcc, add '-Wall -W -Wno-unused' to CFLAGS, and add
-# '-D_U_="__attribute__((unused))"' as well, for future use when we
-# remove '-Wno-unused'.
+# If we're running gcc, add '-Wall -W' to CFLAGS, and add
+# '-D_U_="__attribute__((unused))"' as well, so we can use _U_ to
+# flag unused function arguments and not get warnings about them.
#
# Otherwise, add '-D_U_=""', so that _U_ used to flag an unused function
# argument will compile with non-GCC compilers.
#
-AC_MSG_CHECKING(to see if we can add '-Wall -W -Wno-unused' to CFLAGS)
+AC_MSG_CHECKING(to see if we can add '-Wall -W' to CFLAGS)
if test x$GCC != x ; then
- CFLAGS="-D_U_=\"__attribute__((unused))\" -Wall -W -Wno-unused $CFLAGS"
+ CFLAGS="-D_U_=\"__attribute__((unused))\" -Wall -W $CFLAGS"
AC_MSG_RESULT(yes)
else
CFLAGS="-D_U_=\"\" $CFLAGS"
/* csids.c
*
- * $Id: csids.c,v 1.9 2002/02/08 10:07:40 guy Exp $
+ * $Id: csids.c,v 1.10 2002/03/02 20:41:07 guy Exp $
*
* Copyright (c) 2000 by Mike Hall <mlh@io.com>
* Copyright (c) 2000 by Cisco Systems
static int
csids_seek_read (wtap *wth,
long seek_off,
- union wtap_pseudo_header *pseudo_header,
+ union wtap_pseudo_header *pseudo_header _U_,
guint8 *pd,
int len)
{
/* dbs-etherwatch.c
*
- * $Id: dbs-etherwatch.c,v 1.3 2002/02/08 10:07:40 guy Exp $
+ * $Id: dbs-etherwatch.c,v 1.4 2002/03/02 20:41:07 guy Exp $
*
* Wiretap Library
* Copyright (c) 2001 by Marc Milgram <mmilgram@arrayinc.com>
/* Used to read packets in random-access fashion */
static int
dbs_etherwatch_seek_read (wtap *wth, long seek_off,
- union wtap_pseudo_header *pseudo_header,
+ union wtap_pseudo_header *pseudo_header _U_,
guint8 *pd, int len)
{
int pkt_len;
/* file.c
*
- * $Id: file.c,v 1.81 2002/02/27 08:57:25 guy Exp $
+ * $Id: file.c,v 1.82 2002/03/02 20:41:07 guy Exp $
*
* Wiretap Library
* Copyright (c) 1998 by Gilbert Ramirez <gram@alumni.rice.edu>
#define N_FILE_TYPES (sizeof open_routines / sizeof open_routines[0])
int wtap_def_seek_read(wtap *wth, long seek_off,
- union wtap_pseudo_header *pseudo_header, guint8 *pd, int len)
+ union wtap_pseudo_header *pseudo_header _U_,
+ guint8 *pd, int len)
{
file_seek(wth->random_fh, seek_off, SEEK_SET);
/* libpcap.c
*
- * $Id: libpcap.c,v 1.66 2002/02/27 08:57:25 guy Exp $
+ * $Id: libpcap.c,v 1.67 2002/03/02 20:41:07 guy Exp $
*
* Wiretap Library
* Copyright (c) 1998 by Gilbert Ramirez <gram@alumni.rice.edu>
/* Write a record for a packet to a dump file.
Returns TRUE on success, FALSE on failure. */
-static gboolean libpcap_dump(wtap_dumper *wdh, const struct wtap_pkthdr *phdr,
- const union wtap_pseudo_header *pseudo_header, const u_char *pd, int *err)
+static gboolean libpcap_dump(wtap_dumper *wdh,
+ const struct wtap_pkthdr *phdr,
+ const union wtap_pseudo_header *pseudo_header _U_,
+ const u_char *pd, int *err)
{
struct pcaprec_ss990915_hdr rec_hdr;
size_t hdr_size;
/* netxray.c
*
- * $Id: netxray.c,v 1.45 2002/02/27 08:57:25 guy Exp $
+ * $Id: netxray.c,v 1.46 2002/03/02 20:41:07 guy Exp $
*
* Wiretap Library
* Copyright (c) 1998 by Gilbert Ramirez <gram@alumni.rice.edu>
/* Write a record for a packet to a dump file.
Returns TRUE on success, FALSE on failure. */
-static gboolean netxray_dump_1_1(wtap_dumper *wdh, const struct wtap_pkthdr *phdr,
- const union wtap_pseudo_header *pseudo_header, const u_char *pd, int *err)
+static gboolean netxray_dump_1_1(wtap_dumper *wdh,
+ const struct wtap_pkthdr *phdr,
+ const union wtap_pseudo_header *pseudo_header _U_,
+ const u_char *pd, int *err)
{
netxray_dump_t *netxray = wdh->dump.netxray;
guint32 timestamp;
/* ngsniffer.c
*
- * $Id: ngsniffer.c,v 1.72 2002/02/27 08:57:25 guy Exp $
+ * $Id: ngsniffer.c,v 1.73 2002/03/02 20:41:07 guy Exp $
*
* Wiretap Library
* Copyright (c) 1998 by Gilbert Ramirez <gram@alumni.rice.edu>
return 0;
}
-static void set_pseudo_header_frame6(union wtap_pseudo_header *pseudo_header,
- struct frame6_rec *frame6)
+static void set_pseudo_header_frame6(
+ union wtap_pseudo_header *pseudo_header _U_,
+ struct frame6_rec *frame6 _U_)
{
/* XXX - Once the frame format is divined, something will most likely go here */
}
}
}
-static void free_blob(gpointer data, gpointer user_data)
+static void free_blob(gpointer data, gpointer user_data _U_)
{
g_free(data);
}
/* pppdump.c
*
- * $Id: pppdump.c,v 1.13 2001/12/17 22:22:42 guy Exp $
+ * $Id: pppdump.c,v 1.14 2002/03/02 20:41:07 guy Exp $
*
* Copyright (c) 2000 by Gilbert Ramirez <gram@alumni.rice.edu>
*
}
static void
-simple_g_free(gpointer data, gpointer junk)
+simple_g_free(gpointer data, gpointer dummy _U_)
{
if (data)
g_free(data);
/* snoop.c
*
- * $Id: snoop.c,v 1.41 2002/02/27 08:57:25 guy Exp $
+ * $Id: snoop.c,v 1.42 2002/03/02 20:41:07 guy Exp $
*
* Wiretap Library
* Copyright (c) 1998 by Gilbert Ramirez <gram@alumni.rice.edu>
/* Write a record for a packet to a dump file.
Returns TRUE on success, FALSE on failure. */
-static gboolean snoop_dump(wtap_dumper *wdh, const struct wtap_pkthdr *phdr,
- const union wtap_pseudo_header *pseudo_header, const u_char *pd, int *err)
+static gboolean snoop_dump(wtap_dumper *wdh,
+ const struct wtap_pkthdr *phdr,
+ const union wtap_pseudo_header *pseudo_header _U_,
+ const u_char *pd, int *err)
{
struct snooprec_hdr rec_hdr;
size_t nwritten;
/* vms.c
*
- * $Id: vms.c,v 1.6 2002/02/08 10:07:41 guy Exp $
+ * $Id: vms.c,v 1.7 2002/03/02 20:41:08 guy Exp $
*
* Wiretap Library
* Copyright (c) 2001 by Marc Milgram <mmilgram@arrayinc.com>
/* Used to read packets in random-access fashion */
static int
-vms_seek_read (wtap *wth, long seek_off, union wtap_pseudo_header *pseudo_header,
+vms_seek_read (wtap *wth, long seek_off,
+ union wtap_pseudo_header *pseudo_header _U_,
guint8 *pd, int len)
{
int pkt_len;