about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorWill Dietz <w@wdtz.org>2018-05-26T19·04-0500
committerWill Dietz <w@wdtz.org>2018-05-26T19·04-0500
commit93ae90de0f118417682ff532935675e4867df9db (patch)
tree4d863ea64d0fdce6c1b2f31f796ea86c0c27be34 /src
parent14c464b6c8d9acec40298923a45a7e3860f70ebf (diff)
eval.cc: add message to static_assert, message can be omitted w/c++17
Diffstat (limited to 'src')
-rw-r--r--src/libexpr/eval.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/eval.cc b/src/libexpr/eval.cc
index 2473157b3f63..7c897800091f 100644
--- a/src/libexpr/eval.cc
+++ b/src/libexpr/eval.cc
@@ -307,7 +307,7 @@ EvalState::EvalState(const Strings & _searchPath, ref<Store> store)
 
     assert(gcInitialised);
 
-    static_assert(sizeof(Env) == 16);
+    static_assert(sizeof(Env) == 16, "environment must be 16 bytes");
 
     /* Initialise the Nix expression search path. */
     if (!settings.pureEval) {