From 9150ae9afb1608f8626e7ecbf230d938db5de5dd Mon Sep 17 00:00:00 2001 From: rlar Date: Tue, 16 Nov 2010 18:59:06 +0000 Subject: [PATCH] introduce macro `IGNORE(x)', which shall used to mark unused parameters --- ChangeLog | 6 ++++++ src/include/ngspice.h | 3 +++ 2 files changed, 9 insertions(+) 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 */