From 4af5606efbaf52cb3a8b98cf704991fbf15fd4c5 Mon Sep 17 00:00:00 2001 From: Andreas Suter Date: Sat, 6 Jun 2026 14:37:35 +0200 Subject: [PATCH] PMsrHandler: escape '?' to avoid trigraph warning in date placeholder The fallback date placeholder string contained the sequence '??-', which the compiler interprets as a trigraph for '~' (-Wtrigraphs warning). Escape the question marks (\?) so the literal string is unchanged while the warning is silenced. Co-Authored-By: Claude Opus 4.8 --- src/classes/PMsrHandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/classes/PMsrHandler.cpp b/src/classes/PMsrHandler.cpp index 027df28d..d67f1769 100644 --- a/src/classes/PMsrHandler.cpp +++ b/src/classes/PMsrHandler.cpp @@ -4993,7 +4993,7 @@ Bool_t PMsrHandler::HandleStatisticEntry(PMsrLines &lines) if (status == 2) { fStatistic.fDate = TString(date)+TString(", ")+TString(time); } else { - fStatistic.fDate = TString("????-??-??, ??:??:??"); + fStatistic.fDate = TString("\?\?\?\?-\?\?-\?\?, \?\?:\?\?:\?\?"); } } // extract chisq