use NG_IGNORE() ...

This commit is contained in:
rlar 2010-11-23 20:00:50 +00:00
parent d602e0b75c
commit 83f9110dc1
3 changed files with 19 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2010-11-23 Robert Larice
* src/xspice/icm/xtraevt/int/udnfunc.c ,
* src/xspice/icm/xtraevt/real/udnfunc.c :
use NG_IGNORE() ...
2010-11-23 Robert Larice
* src/ciderlib/oned/oneprint.c ,
* src/ciderlib/support/globals.c ,

View File

@ -48,6 +48,8 @@ void *tmalloc(size_t);
#define TMALLOC(t,n) (t*) tmalloc(sizeof(t) * (size_t)(n))
/* macro to ignore unused variables and parameters */
#define NG_IGNORE(x) (void)x
/* ************************************************************************ */
@ -62,6 +64,8 @@ static void udn_int_create(CREATE_ARGS)
static void udn_int_dismantle(DISMANTLE_ARGS)
{
NG_IGNORE(STRUCT_PTR);
/* Do nothing. There are no internally malloc'ed things to dismantle */
}
@ -141,6 +145,8 @@ static void udn_int_plot_val(PLOT_VAL_ARGS)
{
int *int_struct = (int *) STRUCT_PTR;
NG_IGNORE(STRUCT_MEMBER_ID);
/* Output a value for the int struct */
PLOT_VAL = *int_struct;
}
@ -152,6 +158,8 @@ static void udn_int_print_val(PRINT_VAL_ARGS)
{
int *int_struct = (int *) STRUCT_PTR;
NG_IGNORE(STRUCT_MEMBER_ID);
/* Allocate space for the printed value */
PRINT_VAL = TMALLOC(char, 30);

View File

@ -48,6 +48,8 @@ void *tmalloc(size_t);
#define TMALLOC(t,n) (t*) tmalloc(sizeof(t) * (size_t)(n))
/* macro to ignore unused variables and parameters */
#define NG_IGNORE(x) (void)x
/* ************************************************************************ */
@ -62,6 +64,8 @@ static void udn_real_create(CREATE_ARGS)
static void udn_real_dismantle(DISMANTLE_ARGS)
{
NG_IGNORE(STRUCT_PTR);
/* Do nothing. There are no internally malloc'ed things to dismantle */
}
@ -142,6 +146,7 @@ static void udn_real_plot_val(PLOT_VAL_ARGS)
{
double *real_struct = (double *) STRUCT_PTR;
NG_IGNORE(STRUCT_MEMBER_ID);
/* Output a value for the real struct */
PLOT_VAL = *real_struct;
@ -154,6 +159,7 @@ static void udn_real_print_val(PRINT_VAL_ARGS)
{
double *real_struct = (double *) STRUCT_PTR;
NG_IGNORE(STRUCT_MEMBER_ID);
/* Allocate space for the printed value */
PRINT_VAL = TMALLOC(char, 30);