Ethereal-dev: Re: [Ethereal-dev] gcc warnings about unused variables

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Hamish Moffatt <hamish@xxxxxxxxxxxx>
Date: Sat, 16 Feb 2002 10:06:51 +1100
On Fri, Feb 15, 2002 at 04:34:48PM +0100, Joerg Mayer wrote:
> +  CFLAGS="-D_U_=\"__attribute__((unused))\" $CFLAGS"
> 
> and this is, how it looks when there is an unused variable:
> 
>  static void
> -capture_stop_cb(GtkWidget *w, gpointer data) {
> +capture_stop_cb(GtkWidget *w _U_, gpointer data) {
>    loop_data *ld = (loop_data *) data;

Will this work with Visual C++, used to build on Windows?

Can a function have multiple unused arguments?

Hamish
-- 
Hamish Moffatt VK3SB <hamish@xxxxxxxxxx> <hamish@xxxxxxxxxxxx>