This is an automated email from the ASF dual-hosted git repository.

yiguolei pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/master by this push:
     new 16c46974c5 [chore](build) Fix compilation errors reported by GCC-13 
(#20114)
16c46974c5 is described below

commit 16c46974c54d9f6d665e0cf4985b6596aad75799
Author: Adonis Ling <adonis0...@gmail.com>
AuthorDate: Sat May 27 08:25:52 2023 +0800

    [chore](build) Fix compilation errors reported by GCC-13 (#20114)
---
 be/src/olap/olap_common.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/be/src/olap/olap_common.h b/be/src/olap/olap_common.h
index 669bd9a665..5abeda0f63 100644
--- a/be/src/olap/olap_common.h
+++ b/be/src/olap/olap_common.h
@@ -267,7 +267,7 @@ class Field;
 class WrapperField;
 using KeyRange = std::pair<WrapperField*, WrapperField*>;
 
-static const int GENERAL_DEBUG_COUNT = 0;
+#define GENERAL_DEBUG_COUNT 0
 
 // ReaderStatistics used to collect statistics when scan data from storage
 struct OlapReaderStatistics {
@@ -360,6 +360,8 @@ struct OlapReaderStatistics {
     int64_t filtered_segment_number = 0;
     // total number of segment
     int64_t total_segment_number = 0;
+
+#if GENERAL_DEBUG_COUNT > 0
     // general_debug_ns is designed for the purpose of DEBUG, to record any 
infomations of debugging or profiling.
     // different from specific meaningful timer such as index_load_ns, 
general_debug_ns can be used flexibly.
     // general_debug_ns has associated with OlapScanNode's 
_general_debug_timer already.
@@ -371,6 +373,7 @@ struct OlapReaderStatistics {
     // usage example:
     //               SCOPED_RAW_TIMER(&_stats->general_debug_ns[1]);
     int64_t general_debug_ns[GENERAL_DEBUG_COUNT] = {};
+#endif
 
     io::FileCacheStatistics file_cache_stats;
     int64_t load_segments_timer = 0;


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to