diff --git a/Geo/GModelIO_OCC.cpp b/Geo/GModelIO_OCC.cpp
index 75ca3dbec2acab180de673964245c284e01d32c9..c8dfdb25776bd22cc9c3c139d99368eb9b9fd1a5 100644
--- a/Geo/GModelIO_OCC.cpp
+++ b/Geo/GModelIO_OCC.cpp
@@ -519,7 +519,7 @@ void OCC_Internals::addBSpline(int tag, std::vector<int> vertexTags)
   _addSpline(tag, vertexTags, 1);
 }
 
-void OCC_Internals::addWire(int tag, std::vector<int> edgeTags, bool closed)
+void OCC_Internals::addWire(int tag, std::vector<int> edgeTags, bool checkClosed)
 {
   if(tag > 0 && _tagWire.IsBound(tag)){
     Msg::Error("OpenCASCADE wire or line loop with tag %d already exists", tag);
@@ -538,7 +538,7 @@ void OCC_Internals::addWire(int tag, std::vector<int> edgeTags, bool closed)
       w.Add(edge);
     }
     result = w.Wire();
-    if(closed && !result.Closed()){
+    if(checkClosed && !result.Closed()){
       Msg::Error("Line Loop is not closed");
       return;
     }
diff --git a/Geo/GModelIO_OCC.h b/Geo/GModelIO_OCC.h
index 69aee3378c3fbf34e34cf6a819d7a0e1d85f759e..5ba608dd6ff18862e0adcbae7f4ccd23719c0eda 100644
--- a/Geo/GModelIO_OCC.h
+++ b/Geo/GModelIO_OCC.h
@@ -116,7 +116,7 @@ class OCC_Internals {
                   double angle1, double angle2);
   void addBezier(int tag, std::vector<int> vertexTags);
   void addBSpline(int tag, std::vector<int> vertexTags);
-  void addWire(int tag, std::vector<int> edgeTags, bool closed);
+  void addWire(int tag, std::vector<int> edgeTags, bool checkClosed);
   void addLineLoop(int tag, std::vector<int> edgeTags);
   void addRectangle(int tag, double x1, double y1, double z1,
                     double x2, double y2, double z2);