diff --git a/platforms/common/spack_utils.sh b/platforms/common/spack_utils.sh
index aec1794f74f4b0a0257fd6c60faddba49d65ead0..17431cc8dc19ab445ce1f683e36a54df7718fa1c 100644
--- a/platforms/common/spack_utils.sh
+++ b/platforms/common/spack_utils.sh
@@ -4,7 +4,7 @@ if [ ! -e ${SPACK_ROOT} ]; then
   git clone ${SPACK_URL} -b ${SPACK_BRANCH} ${SPACK_ROOT}
 fi
 
-_init_spack
+_init_spack ${}
 
 if [[ $(spack compiler info ${SPACK_COMPILER}) ]]; then
   echo "Found Compiler $(spack compiler info ${SPACK_COMPILER})"
@@ -16,8 +16,8 @@ fi
 }
 
 function _init_spack() {
-SPACK_INIT_CMD=$1
-SPACK_ROOT=$2
+#SPACK_INIT_CMD=$1
+#SPACK_ROOT=$2
 if [ -z "$SPACK_INIT_CMD" ] && [ ! -z "${SPACK_ROOT}" ]; then
   echo "Empty SPACK_INIT_CMD -> trying to source config file of spack root: $SPACK_ROOT/share/spack/setup-env.sh"
   . $SPACK_ROOT/share/spack/setup-env.sh