From 229c515b7240398c359b674bc90f6ea3124ab78e Mon Sep 17 00:00:00 2001 From: Abdullah Tahiri Date: Tue, 15 Dec 2020 06:24:28 +0100 Subject: [PATCH] GCS: Deactivate Debug code and fix warnings in non-Debug mode --- src/Mod/Sketcher/App/planegcs/GCS.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Mod/Sketcher/App/planegcs/GCS.cpp b/src/Mod/Sketcher/App/planegcs/GCS.cpp index 5977a1b76c..34b0725041 100644 --- a/src/Mod/Sketcher/App/planegcs/GCS.cpp +++ b/src/Mod/Sketcher/App/planegcs/GCS.cpp @@ -28,7 +28,7 @@ //#define _GCS_DEBUG //#define _GCS_DEBUG_SOLVER_JACOBIAN_QR_DECOMPOSITION_TRIANGULAR_MATRIX //#define _DEBUG_TO_FILE // Many matrices surpass the report view string size. -#define PROFILE_DIAGNOSE +//#define PROFILE_DIAGNOSE #undef _GCS_DEBUG #undef _GCS_DEBUG_SOLVER_JACOBIAN_QR_DECOMPOSITION_TRIANGULAR_MATRIX #undef _DEBUG_TO_FILE @@ -4210,7 +4210,7 @@ void System::identifyDependentParameters( T & qrJ, const GCS::VEC_pD &pdiagnoselist, bool silent) { - + (void) silent; // silent is only used in debug code, but it is important as Base::Console is not thread-safe. Removes warning in non Debug mode. //int constrNum = SqrJ.rows(); // this is the other way around than for the transposed J //int paramsNum = SqrJ.cols();