diff --git a/ChangeLog b/ChangeLog index a7020292a..aeb48ce31 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2010-11-16 Robert Larice + * src/include/ngspice.h : + introduce macro `IGNORE(x)', which shall used to mark unused parameters + for better visibility in the source code + and to swallow compiler warnings + 2010-11-14 Holger Vogt * inpcom.c: bug no. 3072940 diff --git a/src/include/ngspice.h b/src/include/ngspice.h index 5a8da0a06..255ca4cdc 100644 --- a/src/include/ngspice.h +++ b/src/include/ngspice.h @@ -245,5 +245,8 @@ extern int tcl_fprintf(FILE *f, const char *format, ...); #endif +/* macro to ignore unused variables and parameters */ +#define IGNORE(x) (void)x + #endif /* NGSPICE_H_INCLUDED */