summaryrefslogtreecommitdiffstats
path: root/src/usr/hwpf/hwp/fapiHwpExecInitFile.C
diff options
context:
space:
mode:
Diffstat (limited to 'src/usr/hwpf/hwp/fapiHwpExecInitFile.C')
-rw-r--r--src/usr/hwpf/hwp/fapiHwpExecInitFile.C12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/usr/hwpf/hwp/fapiHwpExecInitFile.C b/src/usr/hwpf/hwp/fapiHwpExecInitFile.C
index 664cdd69b..146829704 100644
--- a/src/usr/hwpf/hwp/fapiHwpExecInitFile.C
+++ b/src/usr/hwpf/hwp/fapiHwpExecInitFile.C
@@ -77,6 +77,10 @@
extern "C"
{
+#ifndef SUPPRESS_UNUSED_VARIABLE
+#define SUPPRESS_UNUSED_VARIABLE(...)
+#endif
+
// --------------------------------------------------------------------
// enable minimal debug. This will trace:
// Attr table, literal table, scoms, rows, and expressions being processed.
@@ -86,7 +90,7 @@ extern "C"
#ifdef HWPEXECINITFILE_DEBUG
#define IF_DBG(_fmt_, _args_...) FAPI_IMP(_fmt_, ##_args_)
#else
-#define IF_DBG(_fmt_, _args_...)
+#define IF_DBG(_fmt_, _args_...) SUPPRESS_UNUSED_VARIABLE(NULL, ##_args_)
#endif
// --------------------------------------------------------------------
@@ -98,7 +102,7 @@ extern "C"
#ifdef HWPEXECINITFILE_MALLOC_DEBUG
#define IF_MDBG(_fmt_, _args_...) FAPI_IMP(_fmt_, ##_args_)
#else
-#define IF_MDBG(_fmt_, _args_...)
+#define IF_MDBG(_fmt_, _args_...) SUPPRESS_UNUSED_VARIABLE(NULL, ##_args_)
#endif
// --------------------------------------------------------------------
@@ -109,7 +113,7 @@ extern "C"
#ifdef HWPEXECINITFILE_ATTR_DEBUG
#define IF_ADBG(_fmt_, _args_...) FAPI_IMP(_fmt_, ##_args_)
#else
-#define IF_ADBG(_fmt_, _args_...)
+#define IF_ADBG(_fmt_, _args_...) SUPPRESS_UNUSED_VARIABLE(NULL, ##_args_)
#endif
// --------------------------------------------------------------------
@@ -120,7 +124,7 @@ extern "C"
#ifdef HWPEXECINITFILE_DEBUG2
#define IF_DBG2(_fmt_, _args_...) FAPI_INF(_fmt_, ##_args_)
#else
-#define IF_DBG2(_fmt_, _args_...)
+#define IF_DBG2(_fmt_, _args_...) SUPPRESS_UNUSED_VARIABLE(NULL, ##_args_)
#endif
//******************************************************************************
OpenPOWER on IntegriCloud