summaryrefslogtreecommitdiffstats
path: root/src/usr/hwpf/hwp/fapiHwpExecInitFile.C
diff options
context:
space:
mode:
authorPatrick Williams <iawillia@us.ibm.com>2013-04-08 14:45:30 -0500
committerA. Patrick Williams III <iawillia@us.ibm.com>2013-04-18 09:13:58 -0500
commitd463911fd7122d75306f6ea9c042d96e1c3597c6 (patch)
treed96e1844d4644defb8233ddcc756fa00b23bd186 /src/usr/hwpf/hwp/fapiHwpExecInitFile.C
parent79f790c2b9d6a368f61a99af07d04ed9348ca504 (diff)
downloadtalos-hostboot-d463911fd7122d75306f6ea9c042d96e1c3597c6.tar.gz
talos-hostboot-d463911fd7122d75306f6ea9c042d96e1c3597c6.zip
Add 'SUPPRESS_UNUSED_VARIABLE' macro to avoid compiler warnings.
Change-Id: Ic34fa1e141c1d75ea67933c02366016c732ac0c2 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/4038 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
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