From 1a703e623aa5814e43be002c170b0c7c01462b01 Mon Sep 17 00:00:00 2001 From: Andrew Gaul Date: Tue, 26 Sep 2023 00:15:05 +0900 Subject: [PATCH] Remove volatile qualifiers deprecated in C++23 (#2323) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit These are protected by upload_list_lock. Addresses warnings of the form: warning: ‘++’ expression of ‘volatile’-qualified type is deprecated --- src/fdcache_fdinfo.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fdcache_fdinfo.h b/src/fdcache_fdinfo.h index 2dca5a3..32d381e 100644 --- a/src/fdcache_fdinfo.h +++ b/src/fdcache_fdinfo.h @@ -70,8 +70,8 @@ class PseudoFdInfo bool is_lock_init; mutable pthread_mutex_t upload_list_lock; // protects upload_id and upload_list Semaphore uploaded_sem; // use a semaphore to trigger an upload completion like event flag - volatile int instruct_count; // number of instructions for processing by threads - volatile int completed_count; // number of completed processes by thread + int instruct_count; // number of instructions for processing by threads + int completed_count; // number of completed processes by thread int last_result; // the result of thread processing private: