diff options
author | Christian Geddes <crgeddes@us.ibm.com> | 2019-04-08 10:28:10 -0500 |
---|---|---|
committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2019-04-09 09:53:56 -0500 |
commit | 0c03d552d8dbb4ad50adbda3c288a175dbff1712 (patch) | |
tree | 2b3f8f700e8225f0ffadbc8212d7d74f904e138f /src | |
parent | e686c6c40b70d89dfdbfd34b1ff3178c8341bcdf (diff) | |
download | talos-hostboot-0c03d552d8dbb4ad50adbda3c288a175dbff1712.tar.gz talos-hostboot-0c03d552d8dbb4ad50adbda3c288a175dbff1712.zip |
Workaround unused var in certain configurations
If we are not doing CHECKSTOP_ANALYSIS and we are in AXONE_BRING_UP
the we will not use the l_errl variable in host_start_stop_engine.
This causes the compile to fail because we elevate warnings to
errors. By casting the variable to void in all cases, this will
workaround the warning.
Change-Id: Ice3c477e2597ba29d5caf987e1d0d207617241c7
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/75671
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Reviewed-by: Matt Derksen <mderkse1@us.ibm.com>
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Luis P. Fernandez <luis.fernandez@ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/usr/isteps/istep15/host_start_stop_engine.C | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/usr/isteps/istep15/host_start_stop_engine.C b/src/usr/isteps/istep15/host_start_stop_engine.C index f4dc1153d..27580947d 100644 --- a/src/usr/isteps/istep15/host_start_stop_engine.C +++ b/src/usr/isteps/istep15/host_start_stop_engine.C @@ -57,6 +57,10 @@ void* host_start_stop_engine (void *io_pArgs) ISTEP_ERROR::IStepError l_StepError; errlHndl_t l_errl = NULL; + // Cast to void just to get around unused var warning if #ifdef's dont work + // out to actually use the l_errl variable + (void)l_errl; + do { #ifdef CONFIG_IPLTIME_CHECKSTOP_ANALYSIS uint64_t l_writeData; |