From 3be844147764b96496bcae6d92fa4b0e43ebff42 Mon Sep 17 00:00:00 2001 From: Bernd Schubert Date: Tue, 15 Jul 2025 18:46:44 +0200 Subject: Switch to c++20 This only effects example/{passthrough_hp.cc,memfs_ll.cc} and is mainly to avoid these warnings ../example/memfs_ll.cc:1100:1: warning: missing field 'statx' initializer [-Wmissing-designated-field-initializers] Signed-off-by: Bernd Schubert --- example/meson.build | 2 +- meson.build | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/example/meson.build b/example/meson.build index 701afa7..21e8317 100644 --- a/example/meson.build +++ b/example/meson.build @@ -37,7 +37,7 @@ if platform != 'dragonfly' and add_languages('cpp', required : false) install: false) executable('memfs_ll', 'memfs_ll.cc', dependencies: [ thread_dep, libfuse_dep ], - cpp_args : '-std=c++17', + cpp_args : '-std=c++20', install: false) endif diff --git a/meson.build b/meson.build index 16b804e..7091d5f 100644 --- a/meson.build +++ b/meson.build @@ -4,7 +4,7 @@ project('libfuse3', ['c'], default_options: [ 'buildtype=debugoptimized', 'c_std=gnu11', - 'cpp_std=c++17', + 'cpp_std=c++20', 'warning_level=2', ]) -- cgit v1.2.3