From 89f1b7d7c544fcdfdcf9592bef9c7ec7641e7006 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Fri, 13 Jun 2025 22:32:29 +0100 Subject: Fix compilation with GCC 14 --- slicer/tool/parser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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( + auto cppfile = std::unique_ptr( cpp || cppPath.empty() ? cpp : fopen(cppPath.c_str(), "w"), cppPath.empty() ? fflush : fclose); if (!cppfile && !cppPath.empty()) { throw CompilerError("Failed to open output file"); -- cgit v1.2.3