Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix -Warray-bounds warning in guc_var_compare() function #431

Open
wants to merge 1 commit into
base: REL_14_STABLE_neon
Choose a base branch
from

Conversation

rahulinux
Copy link

@rahulinux rahulinux commented May 28, 2024

There are a couple of places that guc_var_compare() function takes 'const char ***' type and then casts it to the
'const struct config_generic *' type. This triggers '-Warray-bounds' warning. So, instead cast them to the 'const char *' type.

Ref: https://www.postgresql.org/message-id/attachment/160118/v1-0001-Fix-Warray-bounds-warning-in-guc_var_compare-func.patch

Similar PR for v15: #432

There are a couple of places that guc_var_compare() function takes
'const char ***' type and then casts it to the
'const struct config_generic *' type. This triggers '-Warray-bounds'
warning. So, instead cast them to the 'const char *' type.

Ref: https://www.postgresql.org/message-id/attachment/160118/v1-0001-Fix-Warray-bounds-warning-in-guc_var_compare-func.patch
@rahulinux rahulinux marked this pull request as ready for review May 28, 2024 15:49
@rahulinux rahulinux requested review from hlinnaka and kelvich May 28, 2024 15:50
@kelvich
Copy link

kelvich commented May 28, 2024

@hlinnaka are you ok with committing this right away (blocker for debian bookworm): https://www.postgresql.org/message-id/flat/a74a1a0d-0fd2-3649-5224-4f754e8f91aa%40xs4all.nl ?

@rahulinux can you also open similar PR to REL_15_STABLE_neon too? I assume that v16 don't have this problem, right?

@rahulinux
Copy link
Author

rahulinux commented May 28, 2024

@rahulinux can you also open similar PR to REL_15_STABLE_neon too? I assume that v16 don't have this problem, right?

Yes, added here: #432

Copy link
Contributor

@hlinnaka hlinnaka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok. I don't understand why this is a blocker for updating to bookworm, but whatever

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants