From ccc1d974d1b4827dccce3216dc8fc2ab05aef12e Mon Sep 17 00:00:00 2001 From: Christian Date: Mon, 23 Feb 2015 14:55:06 +0100 Subject: [PATCH] Comments and warnings. --- libsolidity/Parser.cpp | 2 ++ libsolidity/Parser.h | 2 +- libsolidity/Types.h | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/libsolidity/Parser.cpp b/libsolidity/Parser.cpp index 221d8a12a..9043d7fcf 100644 --- a/libsolidity/Parser.cpp +++ b/libsolidity/Parser.cpp @@ -631,6 +631,8 @@ ASTPointer Parser::parseSimpleStatement() return parseVariableDeclarationStatement(); case LookAheadInfo::ExpressionStatement: return parseExpressionStatement(); + default: + break; } // At this point, we have '(Identifier|ElementaryTypeName) "["'. diff --git a/libsolidity/Parser.h b/libsolidity/Parser.h index b6a7851ec..9e4c7bb24 100644 --- a/libsolidity/Parser.h +++ b/libsolidity/Parser.h @@ -108,7 +108,7 @@ private: }; /// Performs limited look-ahead to distinguish between variable declaration and expression statement. - /// For source code of the form "a[][8]" ("IndexAccessStructure"), this it is not possible to + /// For source code of the form "a[][8]" ("IndexAccessStructure"), this is not possible to /// decide with constant look-ahead. LookAheadInfo peekStatementType() const; /// Returns a typename parsed in look-ahead fashion from something like "a[8][2**70]". diff --git a/libsolidity/Types.h b/libsolidity/Types.h index 7e02f878d..0d24b7221 100644 --- a/libsolidity/Types.h +++ b/libsolidity/Types.h @@ -279,7 +279,7 @@ public: }; /** - * The type of an array, the flavours are byte array (bytes), statically- ([]) + * The type of an array. The flavours are byte array (bytes), statically- ([]) * and dynamically-sized array ([]). */ class ArrayType: public Type