Skip to content

Commit 48a4e26

Browse files
authored
[OMON-736] Enable C++20 and fix related warnings (#336)
1 parent d3007d1 commit 48a4e26

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ endif()
3131

3232
# Define project
3333
project(Monitoring
34-
VERSION 3.17.6
34+
VERSION 3.18.0
3535
DESCRIPTION "O2 Monitoring library"
3636
LANGUAGES CXX
3737
)
@@ -217,7 +217,7 @@ target_compile_definitions(Monitoring
217217
)
218218

219219
# Use C++17
220-
target_compile_features(Monitoring PUBLIC cxx_std_17)
220+
target_compile_features(Monitoring PUBLIC cxx_std_20)
221221

222222

223223
####################################

src/ProcessDetails.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ inline void ProcessDetails::generateProcessName()
5959
#endif
6060

6161
if (mProcessName.empty()) {
62-
mProcessName = "!";
62+
mProcessName = "<undefined>";
6363
} else {
6464
mProcessName = mProcessName.substr(mProcessName.find_last_of("/") + 1);
6565
}

0 commit comments

Comments
 (0)