diff options
author | 2022-02-04 23:44:43 +0100 | |
---|---|---|
committer | 2022-02-04 14:44:43 -0800 | |
commit | e0085eb72f4f55d3bd3fb30af7490c999d34b9c7 (patch) | |
tree | 6f2fa753aff5b1fbe42fb3fd5fb8878096df2e27 /Source/Utils/MsgLogger/MsgLogger.H | |
parent | b3d5c36fc27923200d875edde16ae98f421fab32 (diff) | |
download | WarpX-e0085eb72f4f55d3bd3fb30af7490c999d34b9c7.tar.gz WarpX-e0085eb72f4f55d3bd3fb30af7490c999d34b9c7.tar.zst WarpX-e0085eb72f4f55d3bd3fb30af7490c999d34b9c7.zip |
Apply clang-tidy suggestions to MsgLogger and WarnManager (#2823)
* Add misc suggestions from clang-tidy for MsgLogger and WarnManager
* add [[maybe_unused]] to private member variable
* fixed issue with unused variable
* fix bug
Diffstat (limited to 'Source/Utils/MsgLogger/MsgLogger.H')
-rw-r--r-- | Source/Utils/MsgLogger/MsgLogger.H | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Source/Utils/MsgLogger/MsgLogger.H b/Source/Utils/MsgLogger/MsgLogger.H index ca55289b2..d5d7e207c 100644 --- a/Source/Utils/MsgLogger/MsgLogger.H +++ b/Source/Utils/MsgLogger/MsgLogger.H @@ -280,10 +280,9 @@ namespace MsgLogger{ #endif - int m_rank = 0 /*! MPI rank of the current process*/; - int m_num_procs = 0 /*! Number of MPI ranks*/; - int m_io_rank = 0 /*! Rank of the I/O process*/; - bool m_am_i_io = false /*! Flag to store if the process is responsible for I/O*/; + const int m_rank /*! MPI rank of the current process*/; + const int m_num_procs /*! Number of MPI ranks*/; + const int m_io_rank /*! Rank of the I/O process*/; std::map<Msg, std::int64_t> m_messages /*! This stores a map to associate warning messages with the corresponding counters*/; }; |