diff --git a/Geo/GModelIO_CGNS.cpp b/Geo/GModelIO_CGNS.cpp
index d620d0a00b372446ab4b14c5ac02ce210b3e49ee..7939d9ccd3132a12c2a74e2c341d2b1ad791fb4b 100644
--- a/Geo/GModelIO_CGNS.cpp
+++ b/Geo/GModelIO_CGNS.cpp
@@ -1067,7 +1067,7 @@ int GModel::readCGNS(const std::string &name)
   return 0;
 }
 
-int GModel::writeCGNS(const std::string &name, const int zoneDefinition,
+int GModel::writeCGNS(const std::string &name, int zoneDefinition,
                       const CGNSOptions &options, double scalingFactor)
 {
   Message::Error("This version of Gmsh was compiled without CGNS support");