Merge branch release-2016
[alexxy/gromacs.git] / cmake / gmxTestCXX11.cmake
index ea6bed874f22bf5500c1ca78e2ba70a8d55dd763..2e90358ba7863394109c9f1d4cb52b08a951042b 100644 (file)
@@ -1,7 +1,7 @@
 #
 # This file is part of the GROMACS molecular simulation package.
 #
-# Copyright (c) 2012,2013,2014,2015,2016, by the GROMACS development team, led by
+# Copyright (c) 2012,2013,2014,2015,2016,2017, by the GROMACS development team, led by
 # Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
 # and including many others, as listed in the AUTHORS file in the
 # top-level source directory and at http://www.gromacs.org.
@@ -102,6 +102,7 @@ extern template void someFunction<int>();
 int main() {
   // Test nullptr
   double *x = nullptr;
+  (void)x; // Suppressing unused variable warning
   // Test range-based for loops
   int array[5] = { 1, 2, 3, 4, 5 };
   for (int& x : array)