diff --git a/swig/interfaces/make-xml-exception.i b/swig/interfaces/make-xml-exception.i
index fee10c90156840177019c7e95bb348cd50502225..3bed7509bcd0878da48fba8a3d460e3b15c09a3d 100644
--- a/swig/interfaces/make-xml-exception.i
+++ b/swig/interfaces/make-xml-exception.i
@@ -18,7 +18,7 @@
 
 static XMLExceptionHandler* XML_EXCEPTION_HANDLER  = NULL;
 
-void
+static void
 makeXMLException(const XMLException& e){
     SV *error = ERRSV;
     SWIG_MakePtr(error, (void *) XML_EXCEPTION_HANDLER->copyXMLException(e), SWIGTYPE_p_XERCES_CPP_NAMESPACE__XMLException, SWIG_SHADOW|0);