Fix clang warnings
authorAndrey Alekseenko <al42and@gmail.com>
Wed, 15 Sep 2021 09:19:56 +0000 (09:19 +0000)
committerArtem Zhmurov <zhmurov@gmail.com>
Wed, 15 Sep 2021 09:19:56 +0000 (09:19 +0000)
src/gromacs/gpu_utils/gpueventsynchronizer.h

index d79e107e062808d9c4dfe2731f12a327c4b4d644..9feabf59de4e14b6869c7d8d94cb863206f08af7 100644 (file)
@@ -193,8 +193,11 @@ public:
 private:
     DeviceEvent event_;
     int         consumptionCount_;
-    int         minConsumptionCount_;
-    int         maxConsumptionCount_;
+#if defined(__clang__) && GMX_GPU_CUDA
+    [[maybe_unused]]
+#endif
+    int minConsumptionCount_; // Unused in CUDA builds, yet
+    int maxConsumptionCount_;
 };
 
 #endif