diff --git a/applications/utilities/mesh/generation/foamyMesh/foamyHexMeshSurfaceSimplify/Make/options b/applications/utilities/mesh/generation/foamyMesh/foamyHexMeshSurfaceSimplify/Make/options index 23df4fe774a0c66a8d9c8f94c4393b931553defd..ae6726cd0c1bc0ebaa1b60fc935cd71d6585946a 100644 --- a/applications/utilities/mesh/generation/foamyMesh/foamyHexMeshSurfaceSimplify/Make/options +++ b/applications/utilities/mesh/generation/foamyMesh/foamyHexMeshSurfaceSimplify/Make/options @@ -4,7 +4,6 @@ include $(GENERAL_RULES)/cgal EXE_INC = \ -DUNIX \ - -Wno-old-style-cast \ /* -IMarchingCubes */ \ -I$(FASTDUALOCTREE_SRC_PATH) \ -I../conformalVoronoiMesh/lnInclude \ diff --git a/applications/utilities/preProcessing/viewFactorsGen/Make/options b/applications/utilities/preProcessing/viewFactorsGen/Make/options index cc5cbf8c6b6cc3d7f04962289b44956303139b9e..803c6f22ef3a8302d1e488d4eceafc59a5734996 100644 --- a/applications/utilities/preProcessing/viewFactorsGen/Make/options +++ b/applications/utilities/preProcessing/viewFactorsGen/Make/options @@ -1,7 +1,6 @@ include $(GENERAL_RULES)/cgal-header-only EXE_INC = \ - -Wno-old-style-cast \ $(COMP_FLAGS) \ ${CGAL_INC} \ -I$(LIB_SRC)/finiteVolume/lnInclude \ @@ -9,7 +8,6 @@ EXE_INC = \ -I$(LIB_SRC)/meshTools/lnInclude \ -I$(LIB_SRC)/parallel/distributed/lnInclude - EXE_LIBS = \ -lfiniteVolume \ -lsurfMesh \ diff --git a/applications/utilities/surface/surfaceBooleanFeatures/PolyhedronReader/Make/options b/applications/utilities/surface/surfaceBooleanFeatures/PolyhedronReader/Make/options index 3f7a39676cd0cf0be891963bcb7b67c1c09a7762..36f8439a381652c27e9c84b622a4ac2a0ada82a7 100644 --- a/applications/utilities/surface/surfaceBooleanFeatures/PolyhedronReader/Make/options +++ b/applications/utilities/surface/surfaceBooleanFeatures/PolyhedronReader/Make/options @@ -1,8 +1,6 @@ EXE_NDEBUG = -DNDEBUG /* EXE_NDEBUG = -g -O0 -DFULLDEBUG */ -c++CGALWARN = -Wno-old-style-cast - /*-- Define CGAL_INEXACT to use inexact CGAL constructions */ include $(GENERAL_RULES)/cgal @@ -11,7 +9,6 @@ EXE_INC = \ ${ROUNDING_MATH} \ ${EXE_NDEBUG} \ ${CGAL_INC} \ - ${c++LESSWARN} \ -I.. \ -I$(LIB_SRC)/surfMesh/lnInclude \ -I$(LIB_SRC)/meshTools/lnInclude diff --git a/src/OSspecific/POSIX/printStack/printStack.C b/src/OSspecific/POSIX/printStack/printStack.C index a4929376968cf75a081d225a13b02472ad74e193..c81fdd4533de037f11d706d718a82b14357fc01e 100644 --- a/src/OSspecific/POSIX/printStack/printStack.C +++ b/src/OSspecific/POSIX/printStack/printStack.C @@ -6,7 +6,7 @@ \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2011-2016 OpenFOAM Foundation - Copyright (C) 2019-2023 OpenCFD Ltd. + Copyright (C) 2019-2025 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -64,12 +64,11 @@ std::string pipeOpen(const std::string& cmd, const int lineNum = 0) if (cnt == lineNum) { // Retain the last line, trimming trailing newline - str.assign(buf); - - if (str.size()) + if (nread > 0) { - str.resize(str.size()-1); + buf[nread-1] = '\0'; } + str.assign(buf); } } diff --git a/src/dynamicMesh/motionSolvers/displacement/pointSmoothing/displacementSmartPointSmoothingMotionSolver.C b/src/dynamicMesh/motionSolvers/displacement/pointSmoothing/displacementSmartPointSmoothingMotionSolver.C index 88aa458a69f27ef4e005e7ea2a94177ee7542f8e..5ca6b84ff31596d34d2a3273aacae80a0f637411 100644 --- a/src/dynamicMesh/motionSolvers/displacement/pointSmoothing/displacementSmartPointSmoothingMotionSolver.C +++ b/src/dynamicMesh/motionSolvers/displacement/pointSmoothing/displacementSmartPointSmoothingMotionSolver.C @@ -521,7 +521,7 @@ void Foam::displacementSmartPointSmoothingMotionSolver::solve() markAffectedFaces(facesToMove_, affectedFaces); - for(label i = 0; i < nPointSmootherIter_; i ++) + for (label nIter = 0; nIter < nPointSmootherIter_; ++nIter) { const pointField wantedPoints ( @@ -665,7 +665,7 @@ void Foam::displacementSmartPointSmoothingMotionSolver::solve() if (debug & 2) { - OBJstream os(debugDir/"untangle_" + Foam::name(i) + ".obj"); + OBJstream os(debugDir/"untangle_" + Foam::name(nIter) + ".obj"); const pointField wantedPoints ( diff --git a/wmake/rules/General/CGAL b/wmake/rules/General/CGAL deleted file mode 100644 index 98b266f76f7aaafbb23c3ff20a5a6049311006a4..0000000000000000000000000000000000000000 --- a/wmake/rules/General/CGAL +++ /dev/null @@ -1 +0,0 @@ -include $(GENERAL_RULES)/cgal diff --git a/wmake/rules/General/Nvidia/c++ b/wmake/rules/General/Nvidia/c++ index c7b0d2f9ffea5fbd44321b1772d0e3f094dc04f5..d7e9f6b87b3b74e2e8252cc8a6b9f7f745cac4cc 100644 --- a/wmake/rules/General/Nvidia/c++ +++ b/wmake/rules/General/Nvidia/c++ @@ -12,7 +12,7 @@ ptFLAGS := -DNoRepository c++WARN = \ -Wall -Wextra \ - --diag_suppress=111,128,177,185,612,998,1098 \ + --diag_suppress=111,128,177,185,612,998,1098,1428 \ --display_error_number # Less restrictive warnings (eg, for flex++, CGAL, etc.) @@ -34,5 +34,6 @@ sinclude $(GENERAL_RULES)/common/c++$(WM_COMPILE_OPTION) #612-D: overloaded virtual function ... is only partially overridden #998-D: function XX is hidden by YY -- virtual function override intended? #1098-D: unknown attribute "fallthrough" +#1428-D: [offset_in_non_POD_nonstandard] # #------------------------------------------------------------------------------