- Fix build with OpenCASCADE 7.7.0, add * 0001-Part-OCCError.h-remove-unneeded-includes.patch * 0001-Drawing-add-missing-include.patch * 0001-FEM-add-missing-include.patch * 0001-Revert-unused-parameter-warning-change.patch OBS-URL: https://build.opensuse.org/request/show/1045807 OBS-URL: https://build.opensuse.org/package/show/science/FreeCAD?expand=0&rev=156
52 lines
2.2 KiB
Diff
52 lines
2.2 KiB
Diff
From 38e0f1da25a1826510c68cb10a8731ebef895eaf Mon Sep 17 00:00:00 2001
|
|
From: Uwe <donovaly@users.noreply.github.com>
|
|
Date: Mon, 12 Dec 2022 10:43:53 +0100
|
|
Subject: [PATCH] [FEM] add missing include
|
|
|
|
- also fix compiler warning about unused parameter
|
|
---
|
|
src/Mod/Fem/App/AppFemPy.cpp | 1 +
|
|
src/Mod/PartDesign/App/FeatureSketchBased.cpp | 1 -
|
|
src/Mod/PartDesign/App/FeatureSketchBased.h | 1 -
|
|
3 files changed, 1 insertion(+), 2 deletions(-)
|
|
|
|
diff --git a/src/Mod/Fem/App/AppFemPy.cpp b/src/Mod/Fem/App/AppFemPy.cpp
|
|
index ce6bde8c37..ee4d409c1e 100644
|
|
--- a/src/Mod/Fem/App/AppFemPy.cpp
|
|
+++ b/src/Mod/Fem/App/AppFemPy.cpp
|
|
@@ -32,6 +32,7 @@
|
|
#include <CXX/Objects.hxx>
|
|
|
|
#include <Base/Console.h>
|
|
+#include <Base/Interpreter.h>
|
|
#include <Base/Tools.h>
|
|
#include <Base/VectorPy.h>
|
|
#include <Base/PlacementPy.h>
|
|
diff --git a/src/Mod/PartDesign/App/FeatureSketchBased.cpp b/src/Mod/PartDesign/App/FeatureSketchBased.cpp
|
|
index 21485b1dee..5d35bd08f5 100644
|
|
--- a/src/Mod/PartDesign/App/FeatureSketchBased.cpp
|
|
+++ b/src/Mod/PartDesign/App/FeatureSketchBased.cpp
|
|
@@ -449,7 +449,6 @@ void ProfileBased::getFaceFromLinkSub(TopoDS_Face& upToFace, const App::Property
|
|
|
|
void ProfileBased::getUpToFace(TopoDS_Face& upToFace,
|
|
const TopoDS_Shape& support,
|
|
- const TopoDS_Face& supportface,
|
|
const TopoDS_Shape& sketchshape,
|
|
const std::string& method,
|
|
const gp_Dir& dir)
|
|
diff --git a/src/Mod/PartDesign/App/FeatureSketchBased.h b/src/Mod/PartDesign/App/FeatureSketchBased.h
|
|
index 62629e288b..db892d15f4 100644
|
|
--- a/src/Mod/PartDesign/App/FeatureSketchBased.h
|
|
+++ b/src/Mod/PartDesign/App/FeatureSketchBased.h
|
|
@@ -134,7 +134,6 @@ protected:
|
|
/// Find a valid face to extrude up to
|
|
static void getUpToFace(TopoDS_Face& upToFace,
|
|
const TopoDS_Shape& support,
|
|
- const TopoDS_Face& supportface,
|
|
const TopoDS_Shape& sketchshape,
|
|
const std::string& method,
|
|
const gp_Dir& dir);
|
|
--
|
|
2.38.1
|
|
|