Repository navigation
Conversation
GCC examples: config_info.c:198:18 compared int with size_t, encnames.c:594:33 compared int with pg_enc, file_utils.c:517:51 compared size_t with ssize_t (-Wsign-compare); GCC 14 also reported controldata_utils.c:52:29 parameter DataDir shadowing a global (-Wshadow). Keep length types consistent and rename the shadowing parameters.
reshke
force-pushed
the
fix-compiler-warnings-common-types
branch
from
November 23, 2026 08:58
3b349a3 to
c09a0ef
Compare
Contributor
|
Wouldn't it be better to just sync with Postgres here? |
x4m
reviewed
Nov 23, 2026
| * to shrink it down. | ||
| */ | ||
| if (len > block_size) | ||
| if (len > (size_t) block_size) |
Contributor
There was a problem hiding this comment.
This change and the other one in SASL is either pointless or scary. I just can't figure out which one.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
GCC examples: config_info.c:198:18 compared int with size_t, encnames.c:594:33 compared int with pg_enc, file_utils.c:517:51 compared size_t with ssize_t (-Wsign-compare); GCC 14 also reported controldata_utils.c:52:29 parameter DataDir shadowing a global (-Wshadow). Keep length types consistent and rename the shadowing parameters.
Fixes #ISSUE_Number
What does this PR do?
Type of Change
Breaking Changes
Test Plan
make installcheckmake -C src/test installcheck-cbdb-parallelImpact
Performance:
User-facing changes:
Dependencies:
Checklist
Additional Context
CI Skip Instructions