summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2025-06-13 22:32:29 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2025-06-13 22:32:29 +0100
commit89f1b7d7c544fcdfdcf9592bef9c7ec7641e7006 (patch)
tree7c0b5e04805b7c751b7d1806b62ab665836d0cb2
parentUpdate to libxmlpp-5 (diff)
downloadslicer-89f1b7d7c544fcdfdcf9592bef9c7ec7641e7006.tar.bz2
slicer-89f1b7d7c544fcdfdcf9592bef9c7ec7641e7006.tar.xz
slicer-89f1b7d7c544fcdfdcf9592bef9c7ec7641e7006.zip
Fix compilation with GCC 14
-rw-r--r--slicer/tool/parser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/slicer/tool/parser.cpp b/slicer/tool/parser.cpp
index 8a58484..d5a6a9e 100644
--- a/slicer/tool/parser.cpp
+++ b/slicer/tool/parser.cpp
@@ -792,7 +792,7 @@ namespace Slicer {
if (cpp && !cppPath.empty()) {
throw CompilerError("Both file handle and path provided.");
}
- auto cppfile = std::unique_ptr<FILE, decltype(&fclose)>(
+ auto cppfile = std::unique_ptr<FILE, int (*)(FILE *)>(
cpp || cppPath.empty() ? cpp : fopen(cppPath.c_str(), "w"), cppPath.empty() ? fflush : fclose);
if (!cppfile && !cppPath.empty()) {
throw CompilerError("Failed to open output file");