From 48a4e263282aee85363fa3f549fc733266f31870 Mon Sep 17 00:00:00 2001 From: Adam Wegrzynek Date: Tue, 21 Nov 2023 18:38:10 +0100 Subject: [PATCH] [OMON-736] Enable C++20 and fix related warnings (#336) --- CMakeLists.txt | 4 ++-- src/ProcessDetails.cxx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 82a933bb..3581a2bd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -31,7 +31,7 @@ endif() # Define project project(Monitoring - VERSION 3.17.6 + VERSION 3.18.0 DESCRIPTION "O2 Monitoring library" LANGUAGES CXX ) @@ -217,7 +217,7 @@ target_compile_definitions(Monitoring ) # Use C++17 -target_compile_features(Monitoring PUBLIC cxx_std_17) +target_compile_features(Monitoring PUBLIC cxx_std_20) #################################### diff --git a/src/ProcessDetails.cxx b/src/ProcessDetails.cxx index d676806e..bf58292b 100644 --- a/src/ProcessDetails.cxx +++ b/src/ProcessDetails.cxx @@ -59,7 +59,7 @@ inline void ProcessDetails::generateProcessName() #endif if (mProcessName.empty()) { - mProcessName = "!"; + mProcessName = ""; } else { mProcessName = mProcessName.substr(mProcessName.find_last_of("/") + 1); }