Skip to content

Commit

Permalink
Fix -Wunused-variable warnings with gcc
Browse files Browse the repository at this point in the history
  • Loading branch information
ilya-fedin authored and john-preston committed Jul 19, 2021
1 parent 18b6e54 commit 248614b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion codegen/style/parsed_file.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ structure::Value ParsedFile::readColorValue() {
if (options_.isPalette) {
if (auto fallbackName = file_.getToken(BasicType::Name)) {
structure::FullName name = { tokenValue(fallbackName) };
if (auto variable = module_->findVariableInModule(name, *module_)) {
if (module_->findVariableInModule(name, *module_)) {
return { convertWebColor(chars, tokenValue(fallbackName)) };
} else {
logError(kErrorIdentifierNotFound) << "fallback color name";
Expand Down

0 comments on commit 248614b

Please sign in to comment.