summaryrefslogtreecommitdiffstats
path: root/src/occ_405/sensor
diff options
context:
space:
mode:
authorWilliam Bryan <wilbryan@us.ibm.com>2016-10-20 13:53:03 -0500
committerWilliam A. Bryan <wilbryan@us.ibm.com>2016-10-24 11:25:55 -0400
commita4e04571d60b58c0c778c870bc215bf467085fb6 (patch)
treecff81d38b342965bcfb90b509cd1591a194bfdf2 /src/occ_405/sensor
parentf5f808eb2918e96bcdf324bd2dd90853bf9b5f3c (diff)
downloadtalos-occ-a4e04571d60b58c0c778c870bc215bf467085fb6.tar.gz
talos-occ-a4e04571d60b58c0c778c870bc215bf467085fb6.zip
Changes for GCC 4.9 and OP
Change-Id: I95ddff4b290fcf3eab617a674afc489698c78a1e Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/31563 Reviewed-by: Martha Broyles <mbroyles@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: William A. Bryan <wilbryan@us.ibm.com>
Diffstat (limited to 'src/occ_405/sensor')
-rwxr-xr-xsrc/occ_405/sensor/sensor_query_list.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/occ_405/sensor/sensor_query_list.c b/src/occ_405/sensor/sensor_query_list.c
index ab3d0d7..2cae2c7 100755
--- a/src/occ_405/sensor/sensor_query_list.c
+++ b/src/occ_405/sensor/sensor_query_list.c
@@ -73,6 +73,10 @@
// End Function Specification
void printSensorInfo(uint16_t i_gsid)
{
+// This prevents warnings of set but not used since without SNSR_DEBUG
+// being set, the SNSR_DBG macros don't do anything.
+#ifdef SNSR_DEBUG
+
// Initialize variable j and k with NULL and then
// point to sensor to avoid compilation error when SNSR_DEBUG is not
// defined. j and k are only used with SNSR_DBG which is no-op statement
@@ -104,6 +108,8 @@ void printSensorInfo(uint16_t i_gsid)
(uint32_t)k->mini_sensor,
(NULL != j) ? *j : 0
);
+
+#endif
}
// Function Specification
OpenPOWER on IntegriCloud