diff --git a/src/app/command_system_information.cpp b/src/app/command_system_information.cpp index 75c9d5d0..c4776065 100644 --- a/src/app/command_system_information.cpp +++ b/src/app/command_system_information.cpp @@ -147,7 +147,7 @@ QString toUnicodeHexa(const QChar& ch) } // Helper function returning unicode representation of a QString object in the form "U+NNNNU+PPPP..." -QString toUnicodeHexa(const QString& str) +[[maybe_unused]] QString toUnicodeHexa(const QString& str) { QString strHexa; QTextStream ostr(&strHexa); diff --git a/src/app/main.cpp b/src/app/main.cpp index 4805c958..d7eed7ab 100644 --- a/src/app/main.cpp +++ b/src/app/main.cpp @@ -352,7 +352,7 @@ static std::string_view qtTranslate(const TextId& text, int n) } // Helper to query the OpenGL version string -static std::string queryGlVersionString() +[[maybe_unused]] static std::string queryGlVersionString() { QOpenGLContext glContext; if (!glContext.create()) @@ -372,7 +372,7 @@ static std::string queryGlVersionString() // Helper to parse a string containing a semantic version eg "4.6.5 CodeNamed" // Note: only major and minor versions are detected -static QVersionNumber parseSemanticVersionString(std::string_view strVersion) +[[maybe_unused]] static QVersionNumber parseSemanticVersionString(std::string_view strVersion) { if (strVersion.empty()) return {}; diff --git a/src/base/mesh_utils.cpp b/src/base/mesh_utils.cpp index 0f1166d2..04a375ee 100644 --- a/src/base/mesh_utils.cpp +++ b/src/base/mesh_utils.cpp @@ -16,10 +16,11 @@ namespace MeshUtils { namespace { -TColStd_Array1OfReal createArray1OfReal(int count) +// Helper function to create TColStd_Array1OfReal +[[maybe_unused]] TColStd_Array1OfReal createArray1OfReal(int count) { if (count > 0) - return TColStd_Array1OfReal(1 , count); + return TColStd_Array1OfReal(1, count); else return TColStd_Array1OfReal(); } diff --git a/src/io_assimp/io_assimp_reader.cpp b/src/io_assimp/io_assimp_reader.cpp index 1e7b70d3..01400547 100644 --- a/src/io_assimp/io_assimp_reader.cpp +++ b/src/io_assimp/io_assimp_reader.cpp @@ -78,7 +78,7 @@ bool hasScaleFactor(const aiVector3D& scaling) ); } -bool hasScaleFactor(const aiMatrix4x4& trsf) +[[maybe_unused]] bool hasScaleFactor(const aiMatrix4x4& trsf) { const aiVector3D scaling = aiMatrixScaling(trsf); return hasScaleFactor(scaling);