Remove old GCC<=8 (#20508)

GCC version is always greater than 8
This commit is contained in:
mosfet80
2025-03-29 12:21:36 +01:00
committed by GitHub
parent 9cfc345448
commit d5004148b0
6 changed files with 0 additions and 24 deletions

View File

@@ -31,10 +31,8 @@
#elif defined(__GNUC__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wmissing-field-initializers"
#if __GNUC__ >= 8
#pragma GCC diagnostic ignored "-Wcast-function-type"
#endif
#endif
#include "PyExport.h"
#include "Exception.h"
namespace Swig_python

View File

@@ -52,11 +52,7 @@ std::unique_ptr<Part::GeometryExtension> GeometryMigrationExtension::copy() cons
copyAttributes(cpy.get());
#if defined (__GNUC__) && (__GNUC__ <=4)
return std::move(cpy);
#else
return cpy;
#endif
}
PyObject * GeometryMigrationExtension::getPyObject()

View File

@@ -82,11 +82,7 @@ std::unique_ptr<Part::GeometryExtension> ExternalGeometryExtension::copy() const
copyAttributes(cpy.get());
#if defined(__GNUC__) && (__GNUC__ <= 4)
return std::move(cpy);
#else
return cpy;
#endif
}
PyObject* ExternalGeometryExtension::getPyObject()

View File

@@ -103,12 +103,7 @@ std::unique_ptr<Part::GeometryExtension> SketchGeometryExtension::copy() const
auto cpy = std::make_unique<SketchGeometryExtension>();
copyAttributes(cpy.get());
#if defined(__GNUC__) && (__GNUC__ <= 4)
return std::move(cpy);
#else
return cpy;
#endif
}
PyObject* SketchGeometryExtension::getPyObject()

View File

@@ -53,12 +53,7 @@ std::unique_ptr<Part::GeometryExtension> SolverGeometryExtension::copy() const
auto cpy = std::make_unique<SolverGeometryExtension>();
copyAttributes(cpy.get());
#if defined(__GNUC__) && (__GNUC__ <= 4)
return std::move(cpy);
#else
return cpy;
#endif
}
PyObject* SolverGeometryExtension::getPyObject()

View File

@@ -57,11 +57,7 @@ std::unique_ptr<Part::GeometryExtension> ViewProviderSketchGeometryExtension::co
copyAttributes(cpy.get());
#if defined(__GNUC__) && (__GNUC__ <= 4)
return std::move(cpy);
#else
return cpy;
#endif
}
void ViewProviderSketchGeometryExtension::restoreAttributes(Base::XMLReader& reader)