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

maxyang pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cloudberry.git

commit 1cabe2714efdaa7c66d016771ccea5c1e5a76531
Author: Zhenghua Lyu <[email protected]>
AuthorDate: Tue Mar 14 11:06:17 2023 +0800

    Fix 2 compiler warnings.
    
    This commit fixes the following compiler warnings:
    
    vacuum_ao.c:738:1: warning: ‘init_vacrelstats’ was used with no prototype 
before its definition [-Wmissing-prototypes]
      738 | init_vacrelstats()
          | ^~~~~~~~~~~~~~~~
    CPartPruneStepsBuilder.cpp: In member function ‘PartitionedRelPruneInfo* 
gpdxl::CPartPruneStepsBuilder::CreatePartPruneInfoForOneLevel(gpdxl::CDXLNode*)’:
    CPartPruneStepsBuilder.cpp:83:29: warning: comparison of integer 
expressions of different signedness: ‘gpos::ULONG’ {aka ‘unsigned int’} and 
‘int’ [-Wsign-compare]
       83 |         for (ULONG i = 0; i < pinfo->nparts; ++i)
          |                           ~~^~~~~~~~~~~~~~~
---
 src/backend/gpopt/translate/CPartPruneStepsBuilder.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/backend/gpopt/translate/CPartPruneStepsBuilder.cpp 
b/src/backend/gpopt/translate/CPartPruneStepsBuilder.cpp
index 69cbdc80f0..0508d305fb 100644
--- a/src/backend/gpopt/translate/CPartPruneStepsBuilder.cpp
+++ b/src/backend/gpopt/translate/CPartPruneStepsBuilder.cpp
@@ -82,7 +82,7 @@ 
CPartPruneStepsBuilder::CreatePartPruneInfoForOneLevel(CDXLNode *filterNode)
        // partitions that survived static partition pruning; iterate over this 
list
        // to populate pinfo->subplan_map, pinfo->relid_map & 
pinfo->present_parts
        ULONG part_ptr = 0;
-       for (ULONG i = 0; i < pinfo->nparts; ++i)
+       for (ULONG i = 0; (int) i < pinfo->nparts; ++i)
        {
                pinfo->subpart_map[i] = -1;
                if (part_ptr < m_part_indexes->Size() &&


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to