diff --git a/Geo/GModelIO_OCC.h b/Geo/GModelIO_OCC.h
index 1543fe4f1b9b5bbcf4335be15696f790ba278607..49ed18d5f69faa1035ed61ab18128ca07122f224 100644
--- a/Geo/GModelIO_OCC.h
+++ b/Geo/GModelIO_OCC.h
@@ -329,7 +329,7 @@ public:
   { _error("apply translation"); }
   void rotate(std::vector<int> inTags[4], double x, double y, double z,
               double dx, double dy, double dz, double angle){ _error("apply rotation"); }
-  int copy(int dim, int tag){ _error("copy shape"); }
+  int copy(int dim, int tag){ _error("copy shape"); return 0; }
   void remove(int dim, int tag){}
   void importShapes(const std::string &fileName, bool highestDimOnly,
                     std::vector<int> outTags[4], const std::string &format="")