Enable more warnings for Clang 6
[alexxy/gromacs.git] / src / gromacs / utility / path.h
index 9fda9242ef813ab68b637fdd35ecbbe47c158a85..09d6724a76baac9dccdf70bb01eeb79a43dc2127 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * This file is part of the GROMACS molecular simulation package.
  *
- * Copyright (c) 2011,2012,2013,2014,2015,2016, by the GROMACS development team, led by
+ * Copyright (c) 2011,2012,2013,2014,2015,2016,2018, 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.
@@ -116,7 +116,7 @@ class File
 
         static void returnFalseOnError(const NotFoundInfo &info);
         static void throwOnError(const NotFoundInfo &info);
-        static void throwOnNotFound(const NotFoundInfo &info);
+        [[ noreturn ]] static void throwOnNotFound(const NotFoundInfo &info);
 
         typedef void (*NotFoundHandler)(const NotFoundInfo &info);