From a65a51fe6d70a5de046d092b6f9577a269fe8fd7 Mon Sep 17 00:00:00 2001 From: 773-process-312 Date: Sat, 7 Mar 2026 10:08:52 -0500 Subject: [PATCH] Fix C++17 compatibility for GCC 14 / Rocky Linux 10 (RHEL 10) - Fix scalpelInputIsOpen return type: const char -> unsigned char (matches the unsigned char isOpen field in ScalpelInputReader struct) - Remove dynamic exception specifications throw() from scalpel.h and scalpel.cpp (removed in C++17, rejected by GCC 14) Tested on: Rocky Linux 10.1 (Red Quartz), GCC 14.3.1 (Red Hat 14.3.1-2) Requires: libtre 0.8.0 built from source (unavailable as el10 package) Reference build and install scripts: https://github.com/773-process-312/scalpel-rocky10 --- src/input_reader.cpp | 2 +- src/input_reader.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/input_reader.cpp b/src/input_reader.cpp index af49f34..2fc76bd 100644 --- a/src/input_reader.cpp +++ b/src/input_reader.cpp @@ -108,7 +108,7 @@ const char * scalpelInputGetId (ScalpelInputReader * const reader) return reader->id; } -const char scalpelInputIsOpen (ScalpelInputReader * const reader) +unsigned char scalpelInputIsOpen (ScalpelInputReader * const reader) { printVerbose("scalpelInputIsOpen()\n"); return reader->isOpen; diff --git a/src/input_reader.h b/src/input_reader.h index acfb4e0..cabb34b 100644 --- a/src/input_reader.h +++ b/src/input_reader.h @@ -79,7 +79,7 @@ int scalpelInputGetError (ScalpelInputReader * const reader); //non-abstract methods const char* scalpelInputGetId (ScalpelInputReader * const reader); -const char scalpelInputIsOpen(ScalpelInputReader * const reader); +unsigned char scalpelInputIsOpen(ScalpelInputReader * const reader); /********************* FILE implementation of ScalpelInputReader **********************/