From d9ebcbcbc2a4c24b713333a40d0ab1ee1c8432c3 Mon Sep 17 00:00:00 2001
From: Jonathan Lambrechts <jonathan.lambrechts@uclouvain.be>
Date: Thu, 2 Apr 2015 13:05:43 +0000
Subject: [PATCH] dg : get rid of all swig warnings

---
 wrappers/gmshpy/gmshNumeric.i  | 2 ++
 wrappers/gmshpy/gmshtypemaps.i | 1 +
 2 files changed, 3 insertions(+)

diff --git a/wrappers/gmshpy/gmshNumeric.i b/wrappers/gmshpy/gmshNumeric.i
index bf281cbac6..fc663a3d45 100644
--- a/wrappers/gmshpy/gmshNumeric.i
+++ b/wrappers/gmshpy/gmshNumeric.i
@@ -19,6 +19,8 @@
   #include "pyramidalBasis.h"
 %}
 
+%rename("_assign=") operator();
+%rename("_assign_operator=") operator=;
 %include "GaussIntegration.h"
 %include "JacobianBasis.h"
 %include "fullMatrix.h"
diff --git a/wrappers/gmshpy/gmshtypemaps.i b/wrappers/gmshpy/gmshtypemaps.i
index 22b493849f..78bfb9f7ff 100644
--- a/wrappers/gmshpy/gmshtypemaps.i
+++ b/wrappers/gmshpy/gmshtypemaps.i
@@ -6,6 +6,7 @@
 }
 
 %fragment("fullMatrixConversion", "header", fragment="fullMatrixConversionInit") {
+  %#undef HAVE_DLOPEN
   %#include "fullMatrix.h"
   %#include "GmshConfig.h"
   %#ifdef HAVE_NUMPY
-- 
GitLab