swig: disable a few warnings generated by pcb_shape.i, math.i and version.i

This commit is contained in:
jean-pierre charras
2022-03-09 17:29:29 +01:00
parent 4ad89b9c04
commit e37bb2e0c3
3 changed files with 7 additions and 1 deletions
+2
View File
@@ -29,6 +29,8 @@
%ignore VECTOR2<int>::ECOORD_MAX;
%ignore VECTOR2<int>::ECOORD_MIN;
#pragma SWIG nowarn=317
%rename(getWxPoint) operator wxPoint;
%rename(getWxSize) operator wxSize;
+1
View File
@@ -1,4 +1,5 @@
%ignore EDA_SHAPE::getCenter;
#pragma SWIG nowarn=503
%{
#include <geometry/eda_angle.h>
+4 -1
View File
@@ -21,6 +21,9 @@
* @file version.i
* @brief KiCad version routine
*/
#pragma SWIG nowarn=305
%include kicad_build_version.h
%pythoncode
@@ -28,7 +31,7 @@
def Version():
"""Return the semantic version of KiCad"""
return KICAD_SEMANTIC_VERSION
def FullVersion():
"""Return the full, git-based version of KiCad"""
return KICAD_VERSION_FULL