Support oneAPI in gitlab CI
[alexxy/gromacs.git] / src / gromacs / utility / basedefinitions.h
index a6a83112cac309de11cc7b6f78658b3e18180248..02baad7314084f37bb077d8584bc80f0f9be3ea8 100644 (file)
@@ -170,6 +170,16 @@ index ssize(const T& t)
 #    define MSVC_DIAGNOSTIC_RESET
 #endif
 
+#ifdef __INTEL_COMPILER
+// Ignore unused loop variable warning - it was used until the compiler removes the use!
+#    define DO_PRAGMA(x) _Pragma(#    x)
+#    define INTEL_DIAGNOSTIC_IGNORE(id) DO_PRAGMA(warning push) DO_PRAGMA(warning(disable : id ))
+#    define INTEL_DIAGNOSTIC_RESET DO_PRAGMA(warning pop)
+#else
+#    define INTEL_DIAGNOSTIC_IGNORE(id)
+#    define INTEL_DIAGNOSTIC_RESET
+#endif
+
 namespace gmx
 {
 namespace internal