From a7c67415c77e3bdf08d945ae3dd33cfe376b0578 Mon Sep 17 00:00:00 2001 From: Vojtech Bubnik Date: Wed, 5 May 2021 14:34:54 +0200 Subject: [PATCH] Another try of fixing compilation on gcc. --- src/libslic3r/PrintApply.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libslic3r/PrintApply.cpp b/src/libslic3r/PrintApply.cpp index 978707a243..df576fe425 100644 --- a/src/libslic3r/PrintApply.cpp +++ b/src/libslic3r/PrintApply.cpp @@ -7,7 +7,8 @@ namespace Slic3r { // in the exact order and with the same IDs. // It is expected, that the model_object_dst already contains the non-support volumes of model_object_new in the correct order. // Friend to ModelVolume to allow copying. -static void model_volume_list_update_supports(ModelObject &model_object_dst, const ModelObject &model_object_new) +// static is not accepted by gcc if declared as a friend of ModelObject. +/* static */ void model_volume_list_update_supports(ModelObject &model_object_dst, const ModelObject &model_object_new) { typedef std::pair ModelVolumeWithStatus; std::vector old_volumes;