C
Charles Sullivan
I have a number of functions, e.g.:
int funct1( int arg1, int arg2, int arg3 );
int funct2( int arg1, int arg2, int arg3 );
int funct3( int arg1, int arg2, int arg3 );
that are called via pointers in a table, with the
same parameters regardless of the particular
function.
In some of the functions, one or more of the
parameters are unused. This can result in the
compiler warning that such and such a parameter
is unused.
I can silence the compiler by adding a statement
like:
arg2 = arg2;
to each affected function, but that seems sort of
clumsy.
Is there an "approved" way of dealing with this
which will work on all or (most all) C compilers
and OSes?
Thanks for your help.
Regards,
Charles Sullivan
int funct1( int arg1, int arg2, int arg3 );
int funct2( int arg1, int arg2, int arg3 );
int funct3( int arg1, int arg2, int arg3 );
that are called via pointers in a table, with the
same parameters regardless of the particular
function.
In some of the functions, one or more of the
parameters are unused. This can result in the
compiler warning that such and such a parameter
is unused.
I can silence the compiler by adding a statement
like:
arg2 = arg2;
to each affected function, but that seems sort of
clumsy.
Is there an "approved" way of dealing with this
which will work on all or (most all) C compilers
and OSes?
Thanks for your help.
Regards,
Charles Sullivan