From ef154cd1d93b26ed1bc6830e0ff4e59e77503d1e Mon Sep 17 00:00:00 2001 From: Jan Steemann Date: Thu, 21 May 2015 17:00:29 +0200 Subject: [PATCH] fix compile warning --- arangod/Aql/AstNode.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arangod/Aql/AstNode.cpp b/arangod/Aql/AstNode.cpp index 267cdab74d..3d13257d46 100644 --- a/arangod/Aql/AstNode.cpp +++ b/arangod/Aql/AstNode.cpp @@ -50,13 +50,13 @@ using Json = triagens::basics::Json; /// @brief quick translation array from an AST node value type to a JSON type //////////////////////////////////////////////////////////////////////////////// -std::array const JsonTypes{ +std::array const JsonTypes{ { TRI_JSON_NULL, // VALUE_TYPE_NULL = 0, TRI_JSON_BOOLEAN, // VALUE_TYPE_BOOL = 1, TRI_JSON_NUMBER, // VALUE_TYPE_INT = 2, TRI_JSON_NUMBER, // VALUE_TYPE_DOUBLE = 3, TRI_JSON_STRING // VALUE_TYPE_STRING = 4 -}; +} }; static_assert(AstNodeValueType::VALUE_TYPE_NULL == 0, "incorrect ast node value types"); static_assert(AstNodeValueType::VALUE_TYPE_BOOL == 1, "incorrect ast node value types");