[flang] Remove unused variable
authorTim Keith <tkeith@nvidia.com>
Mon, 27 Aug 2018 19:12:03 +0000 (12:12 -0700)
committerTim Keith <tkeith@nvidia.com>
Mon, 27 Aug 2018 19:12:03 +0000 (12:12 -0700)
Original-commit: flang-compiler/f18@05dc053442e7aa2a30f7d92d2a2025534f3935c9
Reviewed-on: https://github.com/flang-compiler/f18/pull/169
Tree-same-pre-rewrite: false

flang/lib/semantics/scope.cc

index 1281531..857e042 100644 (file)
@@ -96,7 +96,6 @@ std::optional<parser::MessageFixedText> Scope::SetImportKind(ImportKind kind) {
     importKind_ = kind;
     return std::nullopt;
   }
-  std::optional<parser::MessageFixedText> error;
   bool hasNone{kind == ImportKind::None || *importKind_ == ImportKind::None};
   bool hasAll{kind == ImportKind::All || *importKind_ == ImportKind::All};
   // Check C8100 and C898: constraints on multiple IMPORT statements