Mercurial > hg > graal-compiler
comparison src/share/vm/classfile/genericSignatures.cpp @ 10973:ef57c43512d6
8014431: cleanup warnings indicated by the -Wunused-value compiler option on linux
Reviewed-by: dholmes, coleenp
Contributed-by: jeremymanson@google.com, calvin.cheung@oracle.com
author | ccheung |
---|---|
date | Thu, 13 Jun 2013 22:02:40 -0700 |
parents | 41ed397cc0cd |
children |
comparison
equal
deleted
inserted
replaced
10969:a837fa3d3f86 | 10973:ef57c43512d6 |
---|---|
122 if (STREAM->parse_error() != NULL) { \ | 122 if (STREAM->parse_error() != NULL) { \ |
123 if (VerifyGenericSignatures) { \ | 123 if (VerifyGenericSignatures) { \ |
124 fatal(STREAM->parse_error()); \ | 124 fatal(STREAM->parse_error()); \ |
125 } \ | 125 } \ |
126 return NULL; \ | 126 return NULL; \ |
127 } 0 | 127 } (void)0 |
128 | 128 |
129 #define READ() STREAM->read(); CHECK_FOR_PARSE_ERROR() | 129 #define READ() STREAM->read(); CHECK_FOR_PARSE_ERROR() |
130 #define PEEK() STREAM->peek(); CHECK_FOR_PARSE_ERROR() | 130 #define PEEK() STREAM->peek(); CHECK_FOR_PARSE_ERROR() |
131 #define PUSH(c) STREAM->push(c) | 131 #define PUSH(c) STREAM->push(c) |
132 #define EXPECT(c) STREAM->read(c); CHECK_FOR_PARSE_ERROR() | 132 #define EXPECT(c) STREAM->read(c); CHECK_FOR_PARSE_ERROR() |
133 #define EXPECTED(c, ch) STREAM->assert_char(c, ch); CHECK_FOR_PARSE_ERROR() | 133 #define EXPECTED(c, ch) STREAM->assert_char(c, ch); CHECK_FOR_PARSE_ERROR() |
134 #define EXPECT_END() STREAM->expect_end(); CHECK_FOR_PARSE_ERROR() | 134 #define EXPECT_END() STREAM->expect_end(); CHECK_FOR_PARSE_ERROR() |
135 | 135 |
136 #define CHECK_STREAM STREAM); CHECK_FOR_PARSE_ERROR(); (0 | 136 #define CHECK_STREAM STREAM); CHECK_FOR_PARSE_ERROR(); ((void)0 |
137 | 137 |
138 #ifndef PRODUCT | 138 #ifndef PRODUCT |
139 void Identifier::print_on(outputStream* str) const { | 139 void Identifier::print_on(outputStream* str) const { |
140 for (int i = _begin; i < _end; ++i) { | 140 for (int i = _begin; i < _end; ++i) { |
141 str->print("%c", (char)_sym->byte_at(i)); | 141 str->print("%c", (char)_sym->byte_at(i)); |