Skip to content

Commit b705999

Browse files
committed
Appease compiler warning
1 parent 7b81abe commit b705999

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/colvarcomp.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ cvm::atom_group *colvar::cvc::parse_group(std::string const &conf,
174174
std::string group_conf;
175175

176176
if (key_lookup(conf, group_key, &group_conf)) {
177+
177178
group = new cvm::atom_group(group_key);
178179

179180
if (b_try_scalable) {
@@ -195,6 +196,8 @@ cvm::atom_group *colvar::cvc::parse_group(std::string const &conf,
195196
COLVARS_INPUT_ERROR);
196197
delete group;
197198
group = nullptr;
199+
// Silence unused variable warning; TODO stop returning a pointer
200+
(void) error_code;
198201
return group;
199202
}
200203

@@ -221,6 +224,9 @@ cvm::atom_group *colvar::cvc::parse_group(std::string const &conf,
221224
}
222225
}
223226

227+
// Silence unused variable warning; TODO stop returning a pointer
228+
(void) error_code;
229+
224230
return group;
225231
}
226232

0 commit comments

Comments
 (0)