From 26aba2c314e913da6bc0e4656f68eb8ddfdd6985 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Sun, 28 Jul 2024 11:49:27 -0400 Subject: [PATCH] silence compiler warnings --- lib/gpu/lal_sw.cpp | 4 ++-- lib/gpu/lal_tersoff.cpp | 4 ++-- lib/gpu/lal_tersoff_mod.cpp | 4 ++-- lib/gpu/lal_tersoff_zbl.cpp | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/gpu/lal_sw.cpp b/lib/gpu/lal_sw.cpp index 9687a0352d..60d388f100 100644 --- a/lib/gpu/lal_sw.cpp +++ b/lib/gpu/lal_sw.cpp @@ -52,12 +52,12 @@ int SWT::init(const int ntypes, const int nlocal, const int nall, double ***costheta, const int *map, int ***e2param) { _lj_types=ntypes; - int oldparam=-1; int onetype=-1; int onetype3=0; int spq=1; - int mtypes=0; #ifdef USE_OPENCL + int oldparam=-1; + int mtypes=0; for (int ii=1; ii