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:23:29 +01:00
parent 4ad89b9c04
commit e37bb2e0c3
3 changed files with 7 additions and 1 deletions

View File

@ -29,6 +29,8 @@
%ignore VECTOR2<int>::ECOORD_MAX; %ignore VECTOR2<int>::ECOORD_MAX;
%ignore VECTOR2<int>::ECOORD_MIN; %ignore VECTOR2<int>::ECOORD_MIN;
#pragma SWIG nowarn=317
%rename(getWxPoint) operator wxPoint; %rename(getWxPoint) operator wxPoint;
%rename(getWxSize) operator wxSize; %rename(getWxSize) operator wxSize;

View File

@ -1,4 +1,5 @@
%ignore EDA_SHAPE::getCenter; %ignore EDA_SHAPE::getCenter;
#pragma SWIG nowarn=503
%{ %{
#include <geometry/eda_angle.h> #include <geometry/eda_angle.h>

View File

@ -21,6 +21,9 @@
* @file version.i * @file version.i
* @brief KiCad version routine * @brief KiCad version routine
*/ */
#pragma SWIG nowarn=305
%include kicad_build_version.h %include kicad_build_version.h
%pythoncode %pythoncode
@ -28,7 +31,7 @@
def Version(): def Version():
"""Return the semantic version of KiCad""" """Return the semantic version of KiCad"""
return KICAD_SEMANTIC_VERSION return KICAD_SEMANTIC_VERSION
def FullVersion(): def FullVersion():
"""Return the full, git-based version of KiCad""" """Return the full, git-based version of KiCad"""
return KICAD_VERSION_FULL return KICAD_VERSION_FULL