Browse Source

use NG_IGNORE() ...

pre-master-46
rlar 16 years ago
parent
commit
83f9110dc1
  1. 5
      ChangeLog
  2. 8
      src/xspice/icm/xtraevt/int/udnfunc.c
  3. 6
      src/xspice/icm/xtraevt/real/udnfunc.c

5
ChangeLog

@ -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 2010-11-23 Robert Larice
* src/ciderlib/oned/oneprint.c , * src/ciderlib/oned/oneprint.c ,
* src/ciderlib/support/globals.c , * src/ciderlib/support/globals.c ,

8
src/xspice/icm/xtraevt/int/udnfunc.c

@ -48,6 +48,8 @@ void *tmalloc(size_t);
#define TMALLOC(t,n) (t*) tmalloc(sizeof(t) * (size_t)(n)) #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) static void udn_int_dismantle(DISMANTLE_ARGS)
{ {
NG_IGNORE(STRUCT_PTR);
/* Do nothing. There are no internally malloc'ed things to dismantle */ /* 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; int *int_struct = (int *) STRUCT_PTR;
NG_IGNORE(STRUCT_MEMBER_ID);
/* Output a value for the int struct */ /* Output a value for the int struct */
PLOT_VAL = *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; int *int_struct = (int *) STRUCT_PTR;
NG_IGNORE(STRUCT_MEMBER_ID);
/* Allocate space for the printed value */ /* Allocate space for the printed value */
PRINT_VAL = TMALLOC(char, 30); PRINT_VAL = TMALLOC(char, 30);

6
src/xspice/icm/xtraevt/real/udnfunc.c

@ -48,6 +48,8 @@ void *tmalloc(size_t);
#define TMALLOC(t,n) (t*) tmalloc(sizeof(t) * (size_t)(n)) #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) static void udn_real_dismantle(DISMANTLE_ARGS)
{ {
NG_IGNORE(STRUCT_PTR);
/* Do nothing. There are no internally malloc'ed things to dismantle */ /* 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; double *real_struct = (double *) STRUCT_PTR;
NG_IGNORE(STRUCT_MEMBER_ID);
/* Output a value for the real struct */ /* Output a value for the real struct */
PLOT_VAL = *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; double *real_struct = (double *) STRUCT_PTR;
NG_IGNORE(STRUCT_MEMBER_ID);
/* Allocate space for the printed value */ /* Allocate space for the printed value */
PRINT_VAL = TMALLOC(char, 30); PRINT_VAL = TMALLOC(char, 30);

Loading…
Cancel
Save